From 4e576c069c36bd31c6bbd57ba661361cb29274c9 Mon Sep 17 00:00:00 2001 From: Andrey Borzenkov Date: Fri, 22 Sep 2006 19:34:05 +0000 Subject: 22758: fix tests by setting locale to C --- Test/A06assign.ztst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Test/A06assign.ztst') 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 -- cgit 1.4.1