Skip to content

Commit

Permalink
tests with date command set env LC_ALL
Browse files Browse the repository at this point in the history
For tests calling `date` Unix tool, also set
environment variable `LC_ALL=c` to make more sure to
avoid locality problems.
  • Loading branch information
jtmoon79 committed Sep 25, 2023
1 parent a47e0e3 commit 9087a17
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/dateutils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ fn verify_against_date_command_format_local(path: &'static str, dt: NaiveDateTim

let output = process::Command::new(path)
.env("LANG", "c")
.env("LC_ALL", "c")
.arg("-d")
.arg(format!(
"{}-{:02}-{:02} {:02}:{:02}:{:02}",
Expand Down

0 comments on commit 9087a17

Please sign in to comment.