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 authored and pitdicker committed Sep 26, 2023
1 parent d450b68 commit e116f5c
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 e116f5c

Please sign in to comment.