#30769 [Opn->Csd]: LC_NUMERIC is not set with setlocale

From: Date: Fri, 12 Nov 2004 14:14:49 +0000
Subject: #30769 [Opn->Csd]: LC_NUMERIC is not set with setlocale
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-68988@lists.php.net to get a copy of this message
ID: 30769 Updated by: derick@php.net Reported By: ruempler at topconcepts dot com -Status: Open +Status: Closed Bug Type: *Languages/Translation Operating System: Linux PHP Version: Irrelevant New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2004-11-12 15:04:12] ruempler at topconcepts dot com 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 this bug report at http://bugs.php.net/?id=30769&edit=1

« previous php.bugs (#68988) next »