shtests --posix: ensure consistent locale: unset all LC_* vars

When running tests in --posix/-p mode, not all LC_* variables were
unset, so that certain aspects of the locale could be non-POSIX.
This commit is contained in:
Martijn Dekker 2021-12-24 17:51:10 +00:00
parent a1f5c99204
commit 9403d326f4
1 changed files with 1 additions and 2 deletions

View File

@ -244,8 +244,7 @@ then utf8=0
if ! let 1.0 2>/dev/null
then export LC_NUMERIC=C
fi
else unset LANG LC_ALL
export LC_NUMERIC=C
else unset LANG ${!LC_*}
fi
if [[ $VMALLOC_OPTIONS ]]
then vmalloc_options=$VMALLOC_OPTIONS