Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: math and locale
- X-seq: zsh-workers 8735
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: math and locale
- Date: Mon, 22 Nov 1999 14:36:01 -0500
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <991122182320.ZM22621@xxxxxxxxxxxxxxxxxxxxxxx>; from schaefer@xxxxxxxxxxxxxxxxxxxxxxx on Mon, Nov 22, 1999 at 06:23:20PM +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19991120151807.A22546@xxxxxxxx> <991120205331.ZM15647@xxxxxxxxxxxxxxxxxxxxxxx> <19991121131432.C31314@xxxxxxxx> <991122081713.ZM18376@xxxxxxxxxxxxxxxxxxxxxxx> <19991122094238.A5609@xxxxxxxx> <991122182320.ZM22621@xxxxxxxxxxxxxxxxxxxxxxx>
> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author