Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
only use locale C.UTF-8 if available, else C
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpase committed Sep 10, 2020
1 parent 5ec24db commit e5f6663
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion build/bin/sage-spkg
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,11 @@
# Avoid surprises with character ranges [a-z] in regular expressions
# See Trac #15791; some locales can produce different results for
# character ranges (use C.UTF-8 to ensure UTF-8 default encoding in Python)
export LC_ALL=C.UTF-8
if test x`locale -a | grep C\.UTF-8` != x; then
export LC_ALL=C.UTF-8;
else
export LC_ALL=C;
fi

usage()
{
Expand Down

0 comments on commit e5f6663

Please sign in to comment.