Skip to content

Commit

Permalink
Revert "Use an UTF-8 locale for the linker."
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Jul 18, 2020
1 parent d3df851 commit 09240a4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/librustc_codegen_ssa/back/linker.rs
Expand Up @@ -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");
}
Expand Down

0 comments on commit 09240a4

Please sign in to comment.