Skip to content

Commit 01c325c

Browse files
authored
[check] Set locale properly (#7920)
Setting `LC_ALL` propagates locale settings on MacOS, whereas `LANG` does not. Also remove the additional sorting added by 1c6cae0, which is now unnecessary.
1 parent 1f79f7a commit 01c325c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/check-output.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,10 +88,10 @@ done
8888

8989
# Cross references since C++17.
9090
# Note: xrefprev should contain a sorted list of C++17 labels.
91-
function indexentries() { sed 's,\\glossaryentry{\(.*\)@.*,\1,' "$1" | LANG=C sort; }
91+
function indexentries() { sed 's,\\glossaryentry{\(.*\)@.*,\1,' "$1" | LC_ALL=C sort; }
9292
function removals() { diff -u "$1" "$2" | grep '^-' | grep -v '^---' | sed 's/^-//'; }
9393
function difference() { diff -u "$1" "$2" | grep '^[-+]' | grep -v '^\(---\|+++\)'; }
94-
XREFDELTA="$(difference <(indexentries xrefdelta.glo) <(removals <(LANG=C sort < xrefprev) <(indexentries xrefindex.glo)))"
94+
XREFDELTA="$(difference <(indexentries xrefdelta.glo) <(removals xrefprev <(indexentries xrefindex.glo)))"
9595
if [ -n "$XREFDELTA" ]; then
9696
echo "incorrect entries in xrefdelta.tex:" >&2
9797
echo "$XREFDELTA" | sed 's,^-,spurious ,; s,^+,missing ,;' >&2

0 commit comments

Comments
 (0)