1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-27 19:17:43 +00:00

fuzz: run GNU Core Utilities with LC_ALL=C

This commit is contained in:
Andrew Liebenow 2024-10-18 09:33:02 -05:00
parent 92e67a5a14
commit bac29943cb

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