Re: [PHP4BETA] bug or feature ???
[email protected] (Joey)
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <[email protected]> |
Again, I don't know that much about locales, but just curious. How hard would it be to detect locale settings at compile time and use different scanner files? --Joey Smith Please forgive the long sig: *** Notice To Bulk Emailers: Attention! Pursuant to US Code, Title 47, Chapter 5, Subchapter II, 227, any & all unsolicited commercial e-mail sent to this address is subject to a download and archival fee in the amount of the $1500 US and copies will be forwarded to domain administrators. Emailing denotes acceptance of said terms! On Tue, 23 May 2000, Zeev Suraski wrote: > 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/ > > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > To contact the list administrators, e-mail: [email protected] > >