ID: 30159 User updated by: richard at hirner dot at Reported By: richard at hirner dot at Status: Bogus Bug Type: *Languages/Translation Operating System: FreeBSD 5.2.1 PHP Version: 4.3.7 New Comment:
Ok thanks. And you're sure that this behaviour shouldn't be changed? =) Previous Comments: ------------------------------------------------------------------------ [2004-09-22 00:27:44] [EMAIL PROTECTED] Actually, it should not use it now that you ask. See the following example on how to use it: http://talks.php.net/show/wereldveroverend-phpworks04/23 Derick (and still not a bug :) ------------------------------------------------------------------------ [2004-09-22 00:17:11] richard at hirner dot at That's strange because all other locale things I use are working & return expected results, including localeconv. I do not know whether number_format SHOULD use locale settings or not, can you give me a hint? ------------------------------------------------------------------------ [2004-09-21 23:46:21] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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