← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1636205] Re: NumberFormatter has incorrect currency symbols for certain locales

 

# cat test.php 
<?php
$nf = new \NumberFormatter("hu@currency=HUF", \NumberFormatter::CURRENCY);
echo $nf->format(5000) . PHP_EOL;
?>

17.04 (7.0.15-1ubuntu3):
# php test.php 
5 000,00 Ft

16.10 (7.0.15-0ubuntu0.16.10.4):
# php test.php
5 000,00 Ft

16.04 (7.0.15-0ubuntu0.16.04.4):
# php test.php
5 000,00 HUF

So I took a look at 16.04 uses libicu55 while 16.10+ use libicu57. I'm
guessing there is an upstream bugfix needed for src:icu.

** Also affects: icu (Ubuntu)
   Importance: Undecided
       Status: New

** Also affects: icu (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Also affects: php7.0 (Ubuntu Xenial)
   Importance: Undecided
       Status: New

** Also affects: icu (Ubuntu Yakkety)
   Importance: Undecided
       Status: New

** Also affects: php7.0 (Ubuntu Yakkety)
   Importance: Undecided
       Status: New

** Changed in: icu (Ubuntu)
       Status: New => Fix Released

** Changed in: icu (Ubuntu Yakkety)
       Status: New => Fix Released

** Changed in: icu (Ubuntu Xenial)
       Status: New => Triaged

** Changed in: php7.0 (Ubuntu Xenial)
       Status: New => Triaged

** Changed in: php7.0 (Ubuntu)
       Status: Triaged => Fix Released

** Changed in: php7.0 (Ubuntu Yakkety)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1636205

Title:
  NumberFormatter  has incorrect currency symbols for certain locales

Status in icu package in Ubuntu:
  Fix Released
Status in php7.0 package in Ubuntu:
  Fix Released
Status in icu source package in Xenial:
  Triaged
Status in php7.0 source package in Xenial:
  Triaged
Status in icu source package in Yakkety:
  Fix Released
Status in php7.0 source package in Yakkety:
  Fix Released

Bug description:
  Intl seems to be missing certain currency symbols in certain locales
  on ubuntu 16.04.

  I noticed while doing some unit tests.
  Under hu_HU locale, the expected result was 5 000 Ft
  The actual result turned out to be 5 000 HUF.
  It seems to be specific to this build, as this passes without problems on the CI server, and also worked fine on other distributions.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/icu/+bug/1636205/+subscriptions