New issue
Advanced search Search tips

Issue 819247 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug



Sign in to add a comment

Wrong currency formatting for fr-CH locale

Reported by eick...@gmail.com, Mar 6 2018

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Steps to reproduce the problem:
1. console.log(new Intl.NumberFormat('fr-CH', { style: 'currency', currency: 'CHF' }).format(5));

What is the expected behavior?
Output: "CHF 5.00" as with the CH locales: de-CH and it-CH

What went wrong?
Output is: "5.00 CHF" - the currency symbol is supposed to be in front of the number.

Did this work before? No 

Does this work in other browsers? No
 This e.g. works in: 
-NodeJs Version 8.9.4 with v8 engine 6.1.534.50
-MS Edge 

It does not work in:
-Chrome Stable and Canary 
-Current Firefox
-Current Safari

Chrome version: 63.0.3239.132  Channel: stable
OS Version: 10.0
Flash Version:
 
1.js
94 bytes View Download
Labels: Needs-Milestone
Cc: susan.boorgula@chromium.org
Labels: Triaged-ET M-67 Target-67 FoundIn-67 OS-Linux OS-Mac
Status: Untriaged (was: Unconfirmed)
eickeee@ Thanks for the issue.

Able to reproduce the issue on Windows 10, Mac OS 10.12.6 and Ubuntu 14.04 on the latest Canary 67.0.3364.0 and Stable 65.0.3325.146.

On executing the above code in Devtools -> Console, can see the output as 5.00 CHF.
Attached is the screen shot for reference.

This is a Non-Regression issue as this behavior is observed from M60 Chrome builds. 
Hence marking this as Untriaged for further updates from Dev.

Thanks..
819247.PNG
46.7 KB View Download
Components: -Blink>JavaScript Blink>JavaScript>Internationalization
Status: Available (was: Untriaged)

Comment 4 by js...@chromium.org, Apr 10 2018

Status: WontFix (was: Available)
That's working as intended. The currency format for fr-CH comes from the CLDR. And, fr-CH in CLDR has the currency after the amount. 

If you think it's wrong, a bug has to be filed against CLDR at 
https://unicode.org/cldr/trac/newticket . 

Comment 5 by js...@chromium.org, Apr 10 2018

Owner: js...@chromium.org

Sign in to add a comment