mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
fuzz: run GNU Core Utilities with LC_ALL=C
This commit is contained in:
parent
92e67a5a14
commit
bac29943cb
1 changed files with 4 additions and 0 deletions
|
@ -231,6 +231,10 @@ pub fn run_gnu_cmd(
|
||||||
command.arg(arg);
|
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 {
|
let output = if let Some(input_str) = pipe_input {
|
||||||
// We have an pipe input
|
// We have an pipe input
|
||||||
command
|
command
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue