diff options
author | Andrey Borzenkov <bor@users.sourceforge.net> | 2006-09-22 19:34:05 +0000 |
---|---|---|
committer | Andrey Borzenkov <bor@users.sourceforge.net> | 2006-09-22 19:34:05 +0000 |
commit | 4e576c069c36bd31c6bbd57ba661361cb29274c9 (patch) | |
tree | 9a395bd9be23d7d3384a18c0b0b2b516e2218051 /Test/A06assign.ztst | |
parent | 4fdf7ec7b77c4238becf70755770a5853164c61e (diff) | |
download | zsh-4e576c069c36bd31c6bbd57ba661361cb29274c9.tar.gz zsh-4e576c069c36bd31c6bbd57ba661361cb29274c9.tar.xz zsh-4e576c069c36bd31c6bbd57ba661361cb29274c9.zip |
22758: fix tests by setting locale to C
Diffstat (limited to 'Test/A06assign.ztst')
-rw-r--r-- | Test/A06assign.ztst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Test/A06assign.ztst b/Test/A06assign.ztst index bbed909c5..ec5331bd0 100644 --- a/Test/A06assign.ztst +++ b/Test/A06assign.ztst @@ -55,6 +55,13 @@ (( i == 30 )) 0:add to integer +# According to official printf info page: +# A floating-point argument must use a period before any fractional +# digits, but is printed according to the `LC_NUMERIC' category of the +# current locale. +# So, force LC_ALL to be C (otherwise it overrides LC_NUMERIC) + + LC_ALL=C LC_NUMERIC=C float f=3.4 f+=2.3 printf "%g\n" f |