1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

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

View file

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