|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59366 Ordinal numbering in sv_ locales emits junk
Submitted: 2010-08-14 16:43 UTC Modified: 2012-12-20 14:58 UTC
Avg. Score:4.0 ± 1.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: michael at dayah dot com Assigned:
Status: Not a bug Package: intl (PECL)
PHP Version: 5.3.2 OS: Ubuntu 10.04
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:
Bug Type:
From: michael at dayah dot com
New email:
PHP Version: OS:


 [2010-08-14 16:43 UTC] michael at dayah dot com
In every other locale other than Swedish, NumberFormatter works for ordinals. In Swedish, it emits an odd string.

Reproduce code:
$fnf = new NumberFormatter('sv_FI', NumberFormatter::ORDINAL);
echo $fnf->format(1);

$snf = new NumberFormatter('sv_SE', NumberFormatter::ORDINAL);
echo $snf->format(1);

Expected result:
1st or the Swedish equivalent.

Actual result:
1:e%digits-ordinal-neutre:0: 1:a


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-01-01 03:46 UTC] hanskrentel at yahoo dot de
I think this is a problem in the underlying ICU Libraries RBNF rules which are 
obtained from CLDR.

Opened a ticket there:
 [2012-05-14 14:11 UTC] hanskrentel at yahoo dot de
On 10 Apr 2012, CLDR trunk on has changed the cause of this issue.
 [2012-12-20 14:58 UTC]
-Status: Open +Status: Not a bug
 [2012-12-20 14:58 UTC]
Closing as the bug is (was) upstream.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 21 13:01:27 2024 UTC