about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-07-18 16:59:16 +0200
committerGitHub <noreply@github.com>2020-07-18 16:59:16 +0200
commit09240a4b4b92f8e4a7f662e052ef1ddffa2eeaac (patch)
treee84c500d0a25ca52bbd1974a83c07f00b18242e6
parentd3df8512d2c2afc6d2e7d8b5b951dd7f2ad77b02 (diff)
downloadrust-09240a4b4b92f8e4a7f662e052ef1ddffa2eeaac.tar.gz
rust-09240a4b4b92f8e4a7f662e052ef1ddffa2eeaac.zip
Revert "Use an UTF-8 locale for the linker."
-rw-r--r--src/librustc_codegen_ssa/back/linker.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustc_codegen_ssa/back/linker.rs b/src/librustc_codegen_ssa/back/linker.rs
index 6f40aac83eb..e64aafa599f 100644
--- a/src/librustc_codegen_ssa/back/linker.rs
+++ b/src/librustc_codegen_ssa/back/linker.rs
@@ -28,9 +28,7 @@ use rustc_target::spec::{LinkOutputKind, LinkerFlavor, LldFlavor};
 pub fn disable_localization(linker: &mut Command) {
     // No harm in setting both env vars simultaneously.
     // Unix-style linkers.
-    // We use an UTF-8 locale, as the generic C locale disables support for non-ASCII
-    // bytes in filenames on some platforms.
-    linker.env("LC_ALL", "en_US.UTF-8");
+    linker.env("LC_ALL", "C");
     // MSVC's `link.exe`.
     linker.env("VSLANG", "1033");
 }