Incorrect locale support for decimal_point

From: Date: Wed, 03 Sep 2003 10:42:46 +0000
Subject: Incorrect locale support for decimal_point
Groups: php.internals 
Request: Send a blank email to internals+get-4364@lists.php.net to get a copy of this message
Hi! I opened Bug #25246 some days ago. The bug was closed as "bogus" by Sniper. I think that this issue (locale numeric settings) is not correctly addressed in the php core. And i would like to open a discussion about it, because i think is a very important one. As stated in the bug report, this breaks backward compatibility with 4.2 and older releases. I think that an innapropiate patch broke this in the end of 2002. The question is that databases returns float values with "," or "." based in its own locale (good locale behavior). I can't understand why php could not work with these settings as usual. Why the new "reset the locale setting" is better? There is not a workaround solution for applications manipulating those values (maybe an database function returning floats always with "."). Please, consider this as a genuine bug as this could make a lot of people outside the US, to stick with older versions of PHP. Thanks. David. -- David Guerrero E-mail: david@boe.es Dpto Tecnologias de la Informacion Telf: 91 384 16 13 B.O.E. (Boletin Oficial del Estado) Ministerio de la Presidencia

« previous php.internals (#4364) next »