#30159 [Opn->Bgs]: format_string does not use LC_NUMERIC
ID: 30159
Updated by: derick@php.net
Reported By: richard at hirner dot at
-Status: Open
+Status: Bogus
Bug Type: *Languages/Translation
Operating System: FreeBSD 5.2.1
PHP Version: 4.3.7
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Check the return value of setlocale(), I bet it's false because you
simply don't have the "de" locale.
Previous Comments:
------------------------------------------------------------------------
[2004-09-19 22:53:45] richard at hirner dot at
Description:
------------
One may expect number_format to behave localised and to use
mon_thousands_sep and mon_decimal_point from localeconv().
See bug 12647, but not only for decimal points but also for thousands
seperators.
Reproduce code:
---------------
setlocale(LC_ALL, "de");
print number_format(100000);
Expected result:
----------------
100.000
Actual result:
--------------
100,000
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=30159&edit=1
Thread (5 messages)