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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: grischa dot kosba at gmail dot com
New email:
PHP Version: OS:

 

 [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-2021 The PHP Group
All rights reserved.
Last updated: Thu Dec 09 05:03:34 2021 UTC