From: ruempler at topconcepts dot com Operating system: Linux PHP version: Irrelevant PHP Bug Type: *Languages/Translation Bug description: LC_NUMERIC is not set with setlocale
Description: ------------ After setting LC_ALL to de_DE, all LC_* types _except_ LC_NUMERIC are set right. Tested with php 4 and 5 on several Linux systems. The same everywhere. Reproduce code: --------------- var_dump(setlocale(LC_ALL, 'de_DE')); var_dump(setlocale(LC_ALL, 0)); var_dump(setlocale(LC_ALL, 'de_DE.iso-8859-1')); var_dump(setlocale(LC_ALL, 0)); var_dump(setlocale(LC_ALL, 'en_US')); var_dump(setlocale(LC_ALL, 0)); Expected result: ---------------- string(5) "de_DE" string(5) "de_DE" string(16) "de_DE.iso-8859-1" string(16) "de_DE.iso-8859-1" string(5) "en_US" string(5) "en_US" Actual result: -------------- string(5) "de_DE" string(204) "LC_CTYPE=de_DE;LC_NUMERIC=C;LC_TIME=de_DE;LC_COLLATE=de_DE;LC_MONETARY=de_DE;LC_MESSAGES=de_DE;LC_PAPER=de_DE;LC_NAME=de_DE;LC_ADDRESS=de_DE;LC_TELEPHONE=de_DE;LC_MEASUREMENT=de_DE;LC_IDENTIFICATION=de_DE" string(16) "de_DE.iso-8859-1" string(325) "LC_CTYPE=de_DE.iso-8859-1;LC_NUMERIC=C;LC_TIME=de_DE.iso-8859-1;LC_COLLATE=de_DE.iso-8859-1;LC_MONETARY=de_DE.iso-8859-1;LC_MESSAGES=de_DE.iso-8859-1;LC_PAPER=de_DE.iso-8859-1;LC_NAME=de_DE.iso-8859-1;LC_ADDRESS=de_DE.iso-8859-1;LC_TELEPHONE=de_DE.iso-8859-1;LC_MEASUREMENT=de_DE.iso-8859-1;LC_IDENTIFICATION=de_DE.iso-8859-1" string(5) "en_US" string(5) "en_US" -- Edit bug report at http://bugs.php.net/?id=30769&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=30769&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30769&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30769&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=30769&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=30769&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=30769&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=30769&r=needscript Try newer version: http://bugs.php.net/fix.php?id=30769&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=30769&r=support Expected behavior: http://bugs.php.net/fix.php?id=30769&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=30769&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=30769&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=30769&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=30769&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=30769&r=dst IIS Stability: http://bugs.php.net/fix.php?id=30769&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=30769&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=30769&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=30769&r=mysqlcfg
