Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zcalc bug



Matthias Kopfermann wrote:
> one last thing that i am not sure about.
> I am quite sure it's not that easy but still a bit
> confusing:
> 
> with LC_NUMERIC=de_DE  zcalc
> 
> i get floating point shown as something like
> `44,2'  , because Germany has "," instead of ".".
> 
> But i cannot use 3*4,2 to calculate.
> A mixture of both seems quite peculiar to me.

Yes, it's a nuisance: that's because zsh does it's own scanning.

It's not that easy to fix.  Consider:

% print $(( 3,4 ))
4

The standard comma operator is specifically defined for math mode, and
whitespace is not significant.

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


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author