Re: [PHP4BETA] bug or feature ???

[email protected] (Zeev Suraski)
Newsgroups php.version4
Message-ID <[email protected]>
At 23:58 22/05/2000 , Sascha Schumann wrote:
>On Sun, 21 May 2000, Andi Gutmans wrote:
>
> > We are using the C library strtod() in order to convert the number to a
> > decimal. I see that strtod() uses locale.
> > How should this be handled? Should we move to a US locale for the
> > conversion? (probably a bit slow).
>
>I think using the locale is a feature, not a bug. If people choose to use
>locales we should not try to force an arbitrary locale onto them.

Due to the fact that we have to write a scanner that analyzes the tokens, 
and recognizes floating point numbers, we can't support locales.

Zeev
--
Zeev Suraski   <[email protected]>  http://www.zend.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.