Skip to content

Commit

Permalink
Merge pull request #6795 from andrewliebenow/fuzz-compare-against-lc-…
Browse files Browse the repository at this point in the history
…all-c

fuzz: run GNU Core Utilities with LC_ALL=C
  • Loading branch information
sylvestre authored Oct 20, 2024
2 parents 9a6f552 + bac2994 commit 7589db5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions fuzz/fuzz_targets/fuzz_common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7589db5

Please sign in to comment.