Closed
Bug 1197724
Opened 10 years ago
Closed 10 years ago
toLocaleString bad formatting of prices in sv-SE locale
Categories
(Core :: JavaScript: Internationalization API, defect)
Tracking
()
VERIFIED
FIXED
People
(Reporter: mihai.cimpoeru, Unassigned)
References
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:40.0) Gecko/20100101 Firefox/40.0
Build ID: 20150812163655
Steps to reproduce:
run in console:
Number(50.50).toLocaleString('sv-SE', {style:'currency', currency: 'USD', maximumFractionDigits: 2})
Actual results:
"50:50 US$"
Expected results:
"50,5 US$"
Component: Untriaged → JavaScript: Internationalization API
Product: Firefox → Core
Comment 1•10 years ago
|
||
On trunk right now:
js> print(Number(50.50).toLocaleString('sv-SE', {style:'currency', currency: 'USD', maximumFractionDigits: 2}))
50,50 US$
So by our rules of Bugzilla, that means this bug is FIXED (because status tracks resolution on trunk, not on branches).
I strongly suspect this was fixed by our updating to a newer version of ICU/CLDR in bug 1075758. That fix occurred in what'll be Firefox 42. If you want to verify for yourself, download a Firefox Developer Edition https://www.mozilla.org/en-US/firefox/developer/ and test it there. (As long as you don't touch the default install settings, I'm told this won't interfere with your normal Firefox.) If somehow I'm mistaken and that build isn't fixed for you, feel free to reopen. :-)
Thanks for the bug report in any event!
You need to log in
before you can comment on or make changes to this bug.
Description
•