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