From:             richard at hirner dot at
Operating system: FreeBSD 5.2.1
PHP version:      4.3.7
PHP Bug Type:     *Languages/Translation
Bug description:  format_string does not use LC_NUMERIC

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 bug report at http://bugs.php.net/?id=30159&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30159&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30159&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30159&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30159&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30159&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30159&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30159&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30159&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30159&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30159&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30159&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30159&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30159&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30159&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30159&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30159&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30159&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30159&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30159&r=mysqlcfg

Reply via email to