Bug #54538 [Opn->Nab]: setlocale() interferes with NumberFormatter class
| From: | cmb@php.net | Date: | Tue, 09 Oct 2018 11:00:58 +0000 |
| Subject: | Bug #54538 [Opn->Nab]: setlocale() interferes with NumberFormatter class | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-217480@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=54538&edit=1
ID: 54538
Updated by: cmb@php.net
Reported by: davidkarlin at gmail dot com
Summary: setlocale() interferes with NumberFormatter class
-Status: Open
+Status: Not a bug
Type: Bug
Package: Unknown/Other Function
Operating System: OS X
PHP Version: 5.3.6
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
This is not a PHP issue, but has rather been a bug in ICU[1],
which is resolved as of ICU 49.1.
[1] <http://bugs.icu-project.org/trac/ticket/8561>
Previous Comments:
------------------------------------------------------------------------
[2015-10-05 09:45:46] martin at tajur dot ee
This relates to https://bugs.php.net/bug.php?id=53735
------------------------------------------------------------------------
[2013-05-16 19:29:57] hariombalhara at gmail dot com
thanks for the workaround. It worked well for me :) Here is the exact problem I
was facing
http://stackoverflow.com/questions/16334752/numberformatterformatcurrency-return-
nan-with-fr-fr-utf-8
------------------------------------------------------------------------
[2011-07-26 13:01:36] radek dot dvorak at gmail dot com
I have observed a workaround. Setting LC_MESSAGES does not affect NumberFormatter
and is sufficient for gettext translations at the same time.
------------------------------------------------------------------------
[2011-04-16 16:52:30] cataphract@php.net
PHP passes the correct value to ICU, namely it passes the expected double to unum_formatDouble. This
is likely an ICU defect. See:
http://bugs.icu-project.org/trac/ticket/8214
------------------------------------------------------------------------
[2011-04-15 13:34:02] davidkarlin at gmail dot com
Sorry - I typed the wrong lines in the expected and actual results. Should be
"123.456,789" in both cases. But you get the idea...
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=54538
--
Edit this bug report at https://bugs.php.net/bug.php?id=54538&edit=1