Revert "Use an UTF-8 locale for the linker."
This commit is contained in:
parent
d3df8512d2
commit
09240a4b4b
1 changed files with 1 additions and 3 deletions
|
@ -28,9 +28,7 @@ use rustc_target::spec::{LinkOutputKind, LinkerFlavor, LldFlavor};
|
||||||
pub fn disable_localization(linker: &mut Command) {
|
pub fn disable_localization(linker: &mut Command) {
|
||||||
// No harm in setting both env vars simultaneously.
|
// No harm in setting both env vars simultaneously.
|
||||||
// Unix-style linkers.
|
// Unix-style linkers.
|
||||||
// We use an UTF-8 locale, as the generic C locale disables support for non-ASCII
|
linker.env("LC_ALL", "C");
|
||||||
// bytes in filenames on some platforms.
|
|
||||||
linker.env("LC_ALL", "en_US.UTF-8");
|
|
||||||
// MSVC's `link.exe`.
|
// MSVC's `link.exe`.
|
||||||
linker.env("VSLANG", "1033");
|
linker.env("VSLANG", "1033");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue