Skip to content

Commit 5c6529c

Browse files
committed
Use POSIX locale
This should always exist
1 parent c3b7a4c commit 5c6529c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

graphannis/src/annis/db/sort_matches.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ mod tests {
255255
use std::time::Duration;
256256

257257
unsafe {
258-
let locale = CString::new("en_US.utf8").unwrap_or_default();
258+
let locale = CString::new("POSIX").unwrap_or_default();
259259
libc::setlocale(libc::LC_COLLATE, locale.as_ptr());
260260
std::thread::sleep(Duration::from_millis(500));
261261
}

verify.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ set -e
77
cargo fmt --check
88
cargo clippy
99

10-
export LANG="en_US.utf8"
10+
export LANG="POSIX"
1111

1212
# Execute tests and calculate the code coverage both as lcov and HTML report
1313
cargo llvm-cov clean --workspace

0 commit comments

Comments
 (0)