Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: math i18n
- X-seq: zsh-workers 8613
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Clint Adams <schizo@xxxxxxxxxx>, zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: math i18n
- Date: Wed, 10 Nov 1999 17:31:19 +0000
- In-reply-to: <19991110121135.A19502@xxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19991110121135.A19502@xxxxxxxx>
On Nov 10, 12:11pm, Clint Adams wrote:
} Subject: PATCH: math i18n
}
} This patch fixes the problem basically by allowing locale
} to switch the meanings of '.' and ','. Because I'm an
} ignorant American, I have no idea what this breaks.
It breaks the comma operator, which is the C-style sequential expression
evaluation operator. That is,
$((a=1,2))
should mean "assign 1 to `a' and return the value 2" and not "assign 1.2
to `a'".
I recommend that we either don't use strtod(), or find a way to force it
to use the C locale, rather than mess around with the shell syntax.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author