From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27493 invoked from network); 22 Nov 1999 19:36:17 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 22 Nov 1999 19:36:17 -0000 Received: (qmail 1052 invoked by alias); 22 Nov 1999 19:36:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8735 Received: (qmail 1041 invoked from network); 22 Nov 1999 19:36:12 -0000 Date: Mon, 22 Nov 1999 14:36:01 -0500 From: Clint Adams To: Bart Schaefer Cc: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: math and locale Message-ID: <19991122143601.A8551@dman.com> References: <19991120151807.A22546@dman.com> <991120205331.ZM15647@candle.brasslantern.com> <19991121131432.C31314@dman.com> <991122081713.ZM18376@candle.brasslantern.com> <19991122094238.A5609@dman.com> <991122182320.ZM22621@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0i In-Reply-To: <991122182320.ZM22621@candle.brasslantern.com>; from schaefer@candle.brasslantern.com on Mon, Nov 22, 1999 at 06:23:20PM +0000 > I'm trying to come up with a circumstance in which zsh would "print" or > otherwise output a number in a format that zzlex would then fail to read. > I tried setting LC_ALL to a few different things and then doing "echo $x" > where x is a floating-point parameter, but it never changed anything. > Where else might it matter? Output of process times or cpu percentages? > Can we make an exhaustive list? Or am I worrying about it too much? No, this is a definite problem. % LC_ALL=pl_PL % typeset -f g % ((g=4.4)) % echo $g 4,4000000000 % ((g=$g + 3)) % echo $g 4,0000000000 And also: % LC_ALL=de_DE % echo $g 4,0000000000 % ((g=8.3)) % echo $g 8,3000000000 % printf "%f\n" $g printf: 8,3000000000: value not completely converted 8.000000 % export LC_ALL % printf "%f\n" $g 8,300000 printf is GNU sh-utils. As for process times: % time sync sync 0,00s user 0,00s system 0% cpu 0,125 total Anything that uses convfloat() will be affected. I can't find anything else.