A slightly better locale-missing fix
This commit is contained in:
@@ -21,11 +21,13 @@ SKIP_TEST_EXITCODE=77
|
||||
# results
|
||||
TZ=CUT
|
||||
# both 'en_US' and 'en_US.utf8' might be defined on some platforms
|
||||
if locale -a 2>/dev/null ; then
|
||||
if locale -a >/dev/null 2>&1 ; then
|
||||
LC_TIME=$(locale -a | grep 'en_US' | grep -v 'utf8' &2>/dev/null)
|
||||
else
|
||||
LC_TIME=en_US
|
||||
fi
|
||||
[[ -z $LC_TIME ]] && {
|
||||
LC_TIME=${LC_TIME:-en_US}
|
||||
}>/dev/null 2>&1
|
||||
|
||||
export TZ LC_TIME
|
||||
|
||||
check_result() {
|
||||
|
||||
Reference in New Issue
Block a user