Merge pull request #6795 from andrewliebenow/fuzz-compare-against-lc-all-c

fuzz: run GNU Core Utilities with LC_ALL=C
This commit is contained in:
Sylvestre Ledru 2024-10-20 17:14:55 +02:00 committed by GitHub
commit 7589db53c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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