Bug #52839 [Opn->Bgs]: Wrong NumberFormatter::SPELLOUT for Russian language
| From: | aharvey@php.net | 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