Re: localeconv not working
| From: | Moriyoshi Koizumi | Date: | Wed, 03 Nov 2004 09:33:59 +0000 |
| Subject: | Re: localeconv not working | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-13702@lists.php.net to get a copy of this message | ||
On 2004/11/03, at 17:11, Derick Rethans wrote:
It's assigned to me for now... I'll have a look at it this week. Does somebody remember why we need to mangle the locale anyway by resetting LC_NUMERIC to "C"?Good to hear the problem is then going to be addressed. According to the annotation, the change (1.320) was made by Ilia with the following comment:
This patch fixes handling of floats on locales where decimal point is
not a '.'. Problem is best demonstrated by bug #17079.
( http://cvs.php.net/co.php/php-src/ext/standard/string.c?r=1.320 )I suppose the root of the problem is that the engine relies on strtod() that is affected by the locale settings. IIRC, there are some threads regarding this... I can't name one though. Moriyoshi