From 4c650b98301bc0e542cb04c2bcea9b945ac26ab9 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 6 Aug 2024 15:13:59 +0000 Subject: [PATCH] Force locale in `rustfmt` shell scripts that rely on sort order --- ci/rustfmt.sh | 2 ++ contrib/run-rustfmt.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ci/rustfmt.sh b/ci/rustfmt.sh index 1039429bc..56384aae3 100755 --- a/ci/rustfmt.sh +++ b/ci/rustfmt.sh @@ -1,6 +1,8 @@ #!/bin/bash set -eox pipefail +export LC_ALL=C + # Generate initial exclusion list #find . -name '*.rs' -type f |sort >rustfmt_excluded_files diff --git a/contrib/run-rustfmt.sh b/contrib/run-rustfmt.sh index d10975657..823e9e025 100755 --- a/contrib/run-rustfmt.sh +++ b/contrib/run-rustfmt.sh @@ -1,6 +1,8 @@ #!/bin/bash set -eo pipefail +export LC_ALL=C + # Generate initial exclusion list #find . -name '*.rs' -type f |sort >rustfmt_excluded_files -- 2.39.5