Edit report at http://bugs.php.net/bug.php?id=52839&edit=1

 ID:                 52839
 Updated by:         ahar...@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

Reply via email to