php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67456 NumberFormatter Russian Nummer 200 spellout wrong
Submitted: 2014-06-16 21:39 UTC Modified: 2014-12-30 10:42 UTC
From: grischa dot kosba at gmail dot com Assigned:
Status: No Feedback Package: intl (PECL)
PHP Version: 5.4.30RC1 OS: Windows 8.1
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-06-16 21:39 UTC] grischa dot kosba at gmail dot com
Description:
------------
NumberFormatter::SPELLOUT in russian for 
200,201,...299 
200.000,200.0001,...299.999
200.000.000 ...299.999.999
etc.

or every number with includs two hundred is spellout wrong.

I don't know, if this is a PHP bug or a bug in the libicu.


Test script:
---------------
<?php
$f = new NumberFormatter("ru", NumberFormatter::SPELLOUT);
echo $f->format(200);


/*Produces the result:
двасти

correct is: двести

два is 2, but the prefix for 200 isn't два, it is две
*/
?>

Expected result:
----------------
двести


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-06-16 22:30 UTC] stas@php.net
-Status: Open +Status: Feedback
 [2014-06-16 22:30 UTC] stas@php.net
PHP makes no modification to ICU data, so looking at the nature of the bug, I'd assume this is a problem in libicu. Which version do you use? You many want to try and upgrade it. It works fine for me in 51.1 - so maybe your libicu is older?
 [2014-12-30 10:42 UTC] pecl-dev at lists dot php dot net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 06:01:30 2024 UTC