# 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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1636205

Title:
  NumberFormatter  has incorrect currency symbols for certain locales

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

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to