#26842 [Opn->Bgs]: localeconv gives wrong decimal place values for locale it_IT

From: Date: Thu, 08 Jan 2004 14:25:06 +0000
Subject: #26842 [Opn->Bgs]: localeconv gives wrong decimal place values for locale it_IT
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-52988@lists.php.net to get a copy of this message
ID: 26842 Updated by: eru@php.net Reported By: marko at oblo dot com -Status: Open +Status: Bogus Bug Type: *Languages/Translation Operating System: linux PHP Version: 4.3.4 New Comment: Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Thank you for your interest in PHP. This is an issue with the locale installed on your computer. Please consult the support of your Linux distribution. Previous Comments: ------------------------------------------------------------------------ [2004-01-08 07:32:00] marko at oblo dot com 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 this bug report at http://bugs.php.net/?id=26842&edit=1

« previous php.bugs (#52988) next »