From 9403d326f4a1333715c19f2c35f220659bf093ce Mon Sep 17 00:00:00 2001 From: Martijn Dekker Date: Fri, 24 Dec 2021 17:51:10 +0000 Subject: [PATCH] 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. --- src/cmd/ksh93/tests/shtests | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/cmd/ksh93/tests/shtests b/src/cmd/ksh93/tests/shtests index d0ec43b3a..ee479316d 100755 --- a/src/cmd/ksh93/tests/shtests +++ b/src/cmd/ksh93/tests/shtests @@ -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