|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-04-19 15:13 UTC] wez@php.net
[2004-04-19 15:38 UTC] bublavas at ecetra dot com
[2004-04-23 11:42 UTC] phpdev at martinsojka dot de
[2005-02-03 05:35 UTC] sniper@php.net
[2005-02-11 01:00 UTC] php-bugs at lists dot php dot net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 17:00:01 2025 UTC |
Description: ------------ nl_langinfo returns wrong values for THOUSEP and RADIXCHAR after setting the locale to 'de_DE'. Using localeconv() returns the same wrong values. An equivalent C program returns correct results. PHP 4.3.4 returns the same results as 4.3.6; executing the script from the command line vs. using HTTP (Apache 2.0.48) makes no difference as well. Reproduce code: --------------- if ( setlocale(LC_ALL, 'de_DE') ) { echo "thousands separator: ", nl_langinfo(THOUSEP), "\n"; echo "decimal point: ", nl_langinfo(RADIXCHAR), "\n"; } else { echo "cannot set locale to de_DE", "\n"; } Expected result: ---------------- thousands separator: . decimal point: , Actual result: -------------- thousands separator: decimal point: .