summary history branches tags files
commit:53dd31229e7473b98eb4a3435780697d280e3cec
author:bbx0 <39773919+bbx0@users.noreply.github.com>
committer:Trevor Bentley
date:Sat Mar 18 14:13:57 2023 +0100
parents:aaf25e57b4cf3840d886d2d44eb5abb4122fc47b
override user locale to `LC_ALL=C`
diff --git a/src/main.rs b/src/main.rs
line changes: +3/-0
index 9b37f2f..a5c3052
--- a/src/main.rs
+++ b/src/main.rs
@@ -1109,6 +1109,9 @@ fn main() {
         VERBOSITY.store(verbosity, Ordering::SeqCst);
     }
 
+    // override user locale to make all command outputs uniform (e.g. when parsing column headers or dates/times)
+    std::env::set_var("LC_ALL", "C");
+
     if launch_opts.test {
         println!("Got --test: running idle test and exiting.");
         let start = time::now_utc().to_timespec().sec as i64;