summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Liebenow <andrewliebenow@gmail.com>2024-10-18 09:33:02 -0500
committerAndrew Liebenow <andrewliebenow@gmail.com>2024-10-18 09:33:02 -0500
commitbac29943cb15eaf6801e233a6268f5cf015b6852 (patch)
tree31f4725e63fe2875bbf6ad4a499e7108acd5e3d1
parent92e67a5a145e842ae008d70d32feb25320e332c3 (diff)
fuzz: run GNU Core Utilities with LC_ALL=C
-rw-r--r--fuzz/fuzz_targets/fuzz_common.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/fuzz/fuzz_targets/fuzz_common.rs b/fuzz/fuzz_targets/fuzz_common.rs
index 6c261cf816..4cc04c8dc0 100644
--- a/fuzz/fuzz_targets/fuzz_common.rs
+++ b/fuzz/fuzz_targets/fuzz_common.rs
@@ -231,6 +231,10 @@ pub fn run_gnu_cmd(
command.arg(arg);
}
+ // See https://github.com/uutils/coreutils/issues/6794
+ // uutils' coreutils is not locale-aware, and aims to mirror/be compatible with GNU Core Utilities's LC_ALL=C behavior
+ command.env("LC_ALL", "C");
+
let output = if let Some(input_str) = pipe_input {
// We have an pipe input
command