From: bublavas at ecetra dot com
Operating system: 2.4.21-9.EL GNU/Linux
PHP version: 4.3.6
PHP Bug Type: Strings related
Bug description: nl_langinfo returns wrong data for de_DE
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: .
--
Edit bug report at http://bugs.php.net/?id=28057&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28057&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28057&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28057&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28057&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28057&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28057&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28057&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28057&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28057&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28057&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28057&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28057&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28057&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28057&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28057&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28057&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28057&r=float