Bug #52839 [Opn->Bgs]: Wrong NumberFormatter::SPELLOUT for Russian language

From: Date: Tue, 14 Sep 2010 14:26:57 +0000
Subject: Bug #52839 [Opn->Bgs]: Wrong NumberFormatter::SPELLOUT for Russian language
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-154349@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52839&edit=1 ID: 52839 Updated by: aharvey@php.net Reported by: rtmvnv at gmail dot com Summary: Wrong NumberFormatter::SPELLOUT for Russian language -Status: Open +Status: Bogus Type: Bug Package: *Unicode Issues Operating System: all PHP Version: 5.3.3 Block user comment: N New Comment: This looks to be dependent on the installed version of libicu: a libicu 3.8 installation results in "тысяча девять сто восемьдесят четыре", whereas libicu 4.2.1 results in "одна тысяча девятьсот восемьдесят четыре". In short, it's an upstream bug that's been fixed, so the only useful advice I can offer is to upgrade libicu. Previous Comments: ------------------------------------------------------------------------ [2010-09-14 15:56:18] rtmvnv at gmail dot com Description: ------------ <?php $fmt = new NumberFormatter("ru", NumberFormatter::SPELLOUT); echo $fmt->format(1984); ?> As a result we get "тысяча девять сто восемьдесят четыре" which is incorrect. Should be "тысяча девятьсот восемьдесят четыре". Test script: --------------- <?php $fmt = new NumberFormatter("ru", NumberFormatter::SPELLOUT); echo $fmt->format(1984); ?> Expected result: ---------------- тысяча девятьсот восемьдесят четыре Actual result: -------------- тысяча девять сто восемьдесят четыре ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=52839&edit=1

« previous php.bugs (#154349) next »