Fix "setlocale: LC_TIME: cannot change locale (en_US" warning during tests.

Both 'en_US' and 'en_US.utf8' might be defined on some platforms

From pbatard branch.
This commit is contained in:
R. Bernstein
2012-02-25 20:27:33 -05:00
parent 3d024135b5
commit 04181f8456

View File

@@ -21,7 +21,8 @@ SKIP_TEST_EXITCODE=77
# Some output changes depending on TZ and locale. Set this so we get known
# results
TZ=CUT
LC_TIME=$(locale -a | grep 'en_US' &2>/dev/null)
# both 'en_US' and 'en_US.utf8' might be defined on some platforms
LC_TIME=$(locale -a | grep 'en_US' | grep -v 'utf8' &2>/dev/null)
export TZ LC_TIME
check_result() {