diff --git a/src/cmd/ksh93/tests/shtests b/src/cmd/ksh93/tests/shtests index 1b79db274..82ae4c76b 100755 --- a/src/cmd/ksh93/tests/shtests +++ b/src/cmd/ksh93/tests/shtests @@ -10,7 +10,7 @@ valgrindflags='--xml=yes --log-file=/dev/null --track-origins=yes --read-var-inf USAGE=$' [-s8? -@(#)$Id: shtests (AT&T Research/ksh93) 2020-07-04 $ +@(#)$Id: shtests (AT&T Research/ksh93) 2020-08-11 $ ] '$USAGE_LICENSE$' [+NAME?shtests - ksh regression test harness] @@ -33,9 +33,9 @@ USAGE=$' [d:debug?Enable \bshtests\b execution trace.] [k:keep?Keep temporary files after test run; shtests will report the location.] [l:locale?Disable \b--utf8\b and run the \b--posix\b and \b--compile\b - tests, if enabled, in the locale of the caller. This may cause invalid - regressions, especially for locales where \b.\b is not the radix - point.] + tests, if enabled, in the locale of the caller. However, for locales + where \b.\b is not the radix point, \bLC_NUMERIC\b is set to \bC\b + to avoid invalid regressions.] [p:posix?Run the test scripts in the posix/C locale.] [t!:time?Include the current date/time in the test identification messages.] @@ -234,6 +234,10 @@ if (( locale )) then utf8=0 if [[ $LC_ALL ]] then export LANG=$LC_ALL + unset ${!LC_*} + fi + if ! let 1.0 2>/dev/null + then export LC_NUMERIC=C fi else unset LANG LC_ALL export LC_NUMERIC=C