From 058185af9f32df82bf632cb1fdd9ec7b9f3d1e8c Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Tue, 12 Nov 2024 00:49:33 -0600 Subject: [PATCH] Ensure that calls to `sort` do not depend on locale Fixes: /~https://github.com/rust-lang/libc/pull/3934#issuecomment-2462301527 (backport ) (cherry picked from commit a88c0d396b08f07c02a534511cea24784aabc492) --- ci/style.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ci/style.sh b/ci/style.sh index 7b4508a6524ff..c8d49e163de96 100755 --- a/ci/style.sh +++ b/ci/style.sh @@ -18,6 +18,9 @@ else exit 1 fi +# Ensure that `sort` output is not locale-dependent +export LC_ALL=C + for file in libc-test/semver/*.txt; do case "$file" in *TODO*) continue ;;