Re: [PHP4BETA] bug or feature ???

[email protected] (Zeev Suraski)
Newsgroups php.version4
Message-ID <[email protected]>
On Tue, 23 May 2000, Joey wrote:

> > 
> > > > but if windows locale scheme is broken,
> > > > IMHO it's a bit beyond PHP to fix it.
> > >
> > > what about to force php4 to use '.'
> > > as decimal point ?
> > I'd agree to that. Most programming languages use a decimal point, and in
> > order to attract as many people as possible, I'd stick to that.
> > 
> > Just my 2c,
> > Christian
> > 
> Then why is it that C's strtod() is locale sensitive?

You use C to write applications, and it does make sense for applications
to be localized;  Thus, it does make that functions used to build
applications in C would be localized.  It doesn't make sense for
programming languages to be localized, in my opinion.  A PHP script that
someone writes in France should work fine on a machine in Germany or the
US, just like it would work with a C program.

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.