Skip to content

Commit 92f0b7e

Browse files
authored
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`
2 parents cdec9a0 + b6909ce commit 92f0b7e

File tree

1 file changed

+2
-0
lines changed
  • src/tools/run-make-support/src

1 file changed

+2
-0
lines changed

src/tools/run-make-support/src/run.rs

+2
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ fn run_common(name: &str, args: Option<&[&str]>) -> Command {
2929
}
3030
env::join_paths(paths.iter()).unwrap()
3131
});
32+
cmd.env("LC_ALL", "C"); // force english locale
3233

3334
if is_windows() {
3435
let mut paths = vec![];
@@ -84,5 +85,6 @@ pub fn run_fail(name: &str) -> CompletedProcess {
8485
pub fn cmd<S: AsRef<OsStr>>(program: S) -> Command {
8586
let mut command = Command::new(program);
8687
set_host_rpath(&mut command);
88+
command.env("LC_ALL", "C"); // force english locale
8789
command
8890
}

0 commit comments

Comments
 (0)