Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:4364 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26147 invoked by uid 1010); 3 Sep 2003 10:42:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26097 invoked from network); 3 Sep 2003 10:42:48 -0000 Received: from unknown (HELO cerbero.boe.es) (195.235.164.202) by pb1.pair.com with SMTP; 3 Sep 2003 10:42:48 -0000 Received: from medeo.boe.es (medeo.boe.es [193.144.240.227]) by cerbero.boe.es (8.11.6/8.11.2) with ESMTP id h83Agle18313 for ; Wed, 3 Sep 2003 12:42:47 +0200 Received: from localhost (localhost [127.0.0.1]) by medeo.boe.es (Postfix) with ESMTP id 2880B120273; Wed, 3 Sep 2003 12:42:47 +0200 (CEST) Received: from medeo.boe.es ([127.0.0.1]) by localhost (medeo.boe.es [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31690-09; Wed, 3 Sep 2003 12:42:46 +0200 (CEST) Received: from boe.es (pc3094.boe.es [193.144.243.94]) by medeo.boe.es (Postfix) with ESMTP id C0651120272; Wed, 3 Sep 2003 12:42:46 +0200 (CEST) Message-ID: <3F55C5A6.2040602@boe.es> Date: Wed, 03 Sep 2003 12:42:46 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at boe.es Subject: Incorrect locale support for decimal_point From: david@boe.es (David Guerrero) 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