about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-08-21 19:05:35 +0200
committerUrgau <urgau@numericable.fr>2024-08-21 19:09:25 +0200
commitb6909ce61e580d7e57c2539d9ae36437bfdb091d (patch)
tree7c6e1b029519ec9656b67ccb2e718de80844dd58
parente08b80c0fb7667bdcd040761891701e576c42ec8 (diff)
downloadrust-b6909ce61e580d7e57c2539d9ae36437bfdb091d.tar.gz
rust-b6909ce61e580d7e57c2539d9ae36437bfdb091d.zip
Force `LC_ALL=C` for all run-make tests
-rw-r--r--src/tools/run-make-support/src/run.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/run-make-support/src/run.rs b/src/tools/run-make-support/src/run.rs
index 12088e5d3b5..3eeba6fd526 100644
--- a/src/tools/run-make-support/src/run.rs
+++ b/src/tools/run-make-support/src/run.rs
@@ -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
 }