Re: [PHP4BETA] bug or feature ???

[email protected] (Andi Gutmans)
Newsgroups php.version4
Message-ID <[email protected]>
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).

Andi

At 09:23 PM 5/21/00 +0200, Tobias Johan Karlsen wrote:
>At 21:21 21.05.00 +0300, Andi Gutmans wrote:
>>Please try the attached binaries and let me know if you still have a
>>problem.
>>
>>Thanks,
>>
>>Andi
>
>Tested, but I experience the same problem. Output as follows:
>
>G:\PHP\test>php -q test.php
>200<br>0<br>0
>G:\PHP\test>
>
>But, if I change the regional settings to English, or change the decimal 
>symbol (control panel -> Regional settings -> Number) to '.' instead of 
>',' (which is the norwegian standard), I get the following output:
>
>G:\PHP\test>php -q test.php
>200<br>0.05<br>10
>G:\PHP\test>
>
>
>Hope this helps.
>
>-- Tobias

---
Andi Gutmans <[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.