]> git.lizzy.rs Git - rust.git/commitdiff
Use an UTF-8 locale for the linker.
authorJakub Kądziołka <kuba@kadziolka.net>
Thu, 16 Jul 2020 23:06:56 +0000 (01:06 +0200)
committerJakub Kądziołka <kuba@kadziolka.net>
Thu, 16 Jul 2020 23:09:52 +0000 (01:09 +0200)
src/librustc_codegen_ssa/back/linker.rs

index e64aafa599fd8ae39d63af34fbb8808cd810090e..6f40aac83eb9c7b7a1da4fbbd0867eaace7c3d63 100644 (file)
@@ -28,7 +28,9 @@
 pub fn disable_localization(linker: &mut Command) {
     // No harm in setting both env vars simultaneously.
     // Unix-style linkers.
-    linker.env("LC_ALL", "C");
+    // 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");
     // MSVC's `link.exe`.
     linker.env("VSLANG", "1033");
 }