Re: [PHP4BETA] bug or feature ???

From: Date: Tue, 23 May 2000 19:41:14 +0000
Subject: Re: [PHP4BETA] bug or feature ???
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-15587@lists.php.net to get a copy of this message
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 <zeev@zend.com> http://www.zend.com/ > > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net > >

« previous php.version4 (#15587) next »