#26842 [NEW]: localeconv gives wrong decimal place values for locale it_IT

From: Date: Thu, 08 Jan 2004 12:32:00 +0000
Subject: #26842 [NEW]: localeconv gives wrong decimal place values for locale it_IT
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-52983@lists.php.net to get a copy of this message
From: marko at oblo dot com Operating system: linux PHP version: 4.3.4 PHP Bug Type: *Languages/Translation Bug description: localeconv gives wrong decimal place values for locale it_IT Description: ------------ localeconv() function returns the wrong values for int_frac_digits and frac_digits. they should be "2" and not "0" (which was correct in the time of the Lira) Reproduce code: --------------- <?php setlocale(LC_ALL, it_IT); var_dump(localeconv()); Expected result: ---------------- array(18) { ["decimal_point"]=> string(1) "." <snip> ["int_frac_digits"]=> int(2) ["frac_digits"]=> int(2) <snip> ["mon_grouping"]=> array(2) { [0]=> int(3) [1]=> int(3) } } Actual result: -------------- array(18) { ["decimal_point"]=> string(1) "." <snip> ["int_frac_digits"]=> int(0) ["frac_digits"]=> int(0) <snip> ["mon_grouping"]=> array(2) { [0]=> int(3) [1]=> int(3) } } -- Edit bug report at http://bugs.php.net/?id=26842&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26842&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26842&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26842&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26842&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26842&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26842&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26842&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26842&r=support Expected behavior: http://bugs.php.net/fix.php?id=26842&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26842&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26842&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26842&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26842&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26842&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26842&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26842&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26842&r=float

« previous php.bugs (#52983) next »