New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 669846 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Dec 14
Cc:
Components:
EstimatedDays: ----
NextAction: 2017-12-13
OS: Mac
Pri: 2
Type: Bug



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
 
Cc: littledan@chromium.org
Components: -Blink>JavaScript Blink>JavaScript>Internationalization
Status: Available (was: Unconfirmed)
Cc: js...@chromium.org
Project Member

Comment 3 by sheriffbot@chromium.org, Dec 11 2017

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
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

Comment 4 by mari...@medikoo.com, 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.


NextAction: 2017-12-13
Status: Available (was: Untriaged)
Please evaluate and close if appropriate.
The NextAction date has arrived: 2017-12-13
Project Member

Comment 7 by sheriffbot@chromium.org, Dec 12

Status: Untriaged (was: Available)
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
Owner: ftang@chromium.org
Looks like we're still different from other browsers. I'm not sure who's correct here though. Frank can you ptal?
Status: Assigned (was: Untriaged)
I suspect this is a icu data trimming issue.

Comment 10 Deleted

Comment 11 Deleted

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/




Owner: js...@chromium.org
Status: Fixed (was: Assigned)

Sign in to add a comment