mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
Rollup merge of #129363 - Urgau:run-make-lc_all-c, r=jieyouxu
Force `LC_ALL=C` for all run-make tests This PR adds `LC_ALL=C` for all run-make tests so that they become locale independent. Fixes #129362 r? `@jieyouxu`
This commit is contained in:
commit
92f0b7edeb
@ -29,6 +29,7 @@ fn run_common(name: &str, args: Option<&[&str]>) -> Command {
|
||||
}
|
||||
env::join_paths(paths.iter()).unwrap()
|
||||
});
|
||||
cmd.env("LC_ALL", "C"); // force english locale
|
||||
|
||||
if is_windows() {
|
||||
let mut paths = vec![];
|
||||
@ -84,5 +85,6 @@ pub fn run_fail(name: &str) -> CompletedProcess {
|
||||
pub fn cmd<S: AsRef<OsStr>>(program: S) -> Command {
|
||||
let mut command = Command::new(program);
|
||||
set_host_rpath(&mut command);
|
||||
command.env("LC_ALL", "C"); // force english locale
|
||||
command
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user