zsh-workers
 help / color / mirror / code / Atom feed
* Re: Bug#164686: zsh: Wrong floatting point operation (when locale_decimal_sign=","?)
       [not found] <E1816J0-0001YL-00@debian>
@ 2002-10-14 22:00 ` Clint Adams
  2002-10-16  9:48   ` Peter Stephenson
  0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2002-10-14 22:00 UTC (permalink / raw)
  To: zsh-workers; +Cc: Marco Bodrato, 164686-forwarded

> Here is the log of a repetible, wrong session of zsh:
> 
> $ LANG=it_IT@euro zsh
> debian% a=4003
> debian% b=4
> debian% typeset -F 4 a
> debian% typeset -F 4 c
> debian% c=$((a/b))
> debian% print $c
> 75,0000
> debian% c=5.5
> debian% c=$((a/b))
> debian% print $c
> 1000.7500
> debian% exit
> 
> And here is the correct one:
> 
> $ LANG=C zsh
> debian% a=4003
> debian% b=4
> debian% typeset -F 4 a
> debian% typeset -F 4 c
> debian% c=$((a/b))
> debian% print $c
> 1000.7500
> debian% exit
> 
> I think the problem reside in the fact that in italian we write
> 4003/4 = 1.000,75

Do we need another set of setlocale() calls somewhere?


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bug#164686: zsh: Wrong floatting point operation (when locale_decimal_sign=","?)
  2002-10-14 22:00 ` Bug#164686: zsh: Wrong floatting point operation (when locale_decimal_sign=","?) Clint Adams
@ 2002-10-16  9:48   ` Peter Stephenson
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2002-10-16  9:48 UTC (permalink / raw)
  To: Zsh hackers list

Clint Adams wrote:
> $ LANG=it_IT@euro zsh
> debian% a=4003
> debian% b=4
> debian% typeset -F 4 a
> debian% typeset -F 4 c
> debian% c=$((a/b))
> debian% print $c
> 75,0000
> debian% c=5.5
> debian% c=$((a/b))
> debian% print $c
> 1000.7500
> debian% exit

I've stuck this in the bug tracker at Sourceforge until someone who can
reproduce it can look at it.  We should probably make more use of that
for little things which might otherwise get forgotten.

A propos of which, there were a few memory leak reports a while
back from Felix in 17514... I tackled a couple but I think there were
others I haven't looked at.

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential 
and/or privileged material. 
Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by 
persons or entities other than the intended recipient is 
prohibited.  
If you received this in error, please contact the sender and 
delete the material from any computer.
**********************************************************************


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-10-16  9:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E1816J0-0001YL-00@debian>
2002-10-14 22:00 ` Bug#164686: zsh: Wrong floatting point operation (when locale_decimal_sign=","?) Clint Adams
2002-10-16  9:48   ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).