Issue metadata
Sign in to add a comment
|
Intl.NumberFormat doesn't provide expected results
Reported by
mari...@medikoo.com,
Nov 30 2016
|
||||||||||||||||||||||
Issue description
UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2937.0 Safari/537.36
Steps to reproduce the problem:
(new Intl.NumberFormat('es-GT', {
style: 'currency',
currencyDisplay: 'symbol',
currency: 'GTQ'
})).format(1232);
Or
1232..toLocaleString('es-GT', {
style: 'currency',
currencyDisplay: 'symbol',
currency: 'GTQ'
});
What is the expected behavior?
"Q1,232.00" (all other browsers: Safari, IE and Firefox get it that way)
What went wrong?
Result is "1.232,00 GTQ", which is not expected as per spec: https://www.ibm.com/support/knowledgecenter/SSS28S_8.2.0/XFDL_Specification/i_xfdl_r_formats_es_GT.html
Did this work before? N/A
Does this work in other browsers? N/A
Chrome version: 57.0.2937.0 Channel: canary
OS Version: OS X 10.12.1
Flash Version: Shockwave Flash 23.0 r0
Possibly related to https://bugs.chromium.org/p/chromium/issues/detail?id=120473
,
Nov 30 2016
,
Dec 11 2017
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. If you change it back, also remove the "Hotlist-Recharge-Cold" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Dec 11 2017
It works better in latest Chrome (62.0.3202.94) as output is GTQ1,232.00 Still, other browers do: Q1,232.00 Anyway it's important that number formatting is now as expected (this was main issue for Guatemalan users I worked with). I'm not sure if fact that Currency symbol is "GTQ" instead of "Q" should be considered a bug.
,
Dec 11 2017
Please evaluate and close if appropriate.
,
Dec 13 2017
The NextAction date has arrived: 2017-12-13
,
Dec 12
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue. Sorry for the inconvenience if the bug really should have been left as Available. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Dec 13
Looks like we're still different from other browsers. I'm not sure who's correct here though. Frank can you ptal?
,
Dec 13
I suspect this is a icu data trimming issue.
,
Dec 14
I try with the trunk, it is working
(new Intl.NumberFormat('es-GT', { style: 'currency', currencyDisplay: 'symbol', currency: 'GTQ' })).format(1232);
give me "Q 1,232.00" in v8 trunk
I think the bug is fixed by jshin with https://chromium.googlesource.com/chromium/deps/icu.git/+/d2afb05f6a5cb4db303087004114b3914d3b7761%5E%21/
,
Dec 14
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by hablich@chromium.org
, Nov 30 2016Components: -Blink>JavaScript Blink>JavaScript>Internationalization
Status: Available (was: Unconfirmed)