[Webkit-unassigned] [Bug 214546] Intl NumberFormat style currency incorrect format for 'es-CA' CAD

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jul 29 11:51:34 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=214546

Yusuke Suzuki <ysuzuki at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ysuzuki at apple.com
         Resolution|---                         |WONTFIX

--- Comment #4 from Yusuke Suzuki <ysuzuki at apple.com> ---
Thanks for your reporting!

(In reply to Illia Bilichenko from comment #0)
> Facing different results of currency format for locale 'es-CA' and CAD
> currency.
> 
> In Chrome(84.0.4147.89) and Firefox(78.0.2):
> Intl.NumberFormat("es-CA", { style: 'currency', currency: "CAD"
> }).format(100.0) --> "100,00 CA$"
> 
> In Safari(14.0) & Webkit build(r264591):
> Intl.NumberFormat("es-CA", { style: 'currency', currency: "CAD"
> }).format(100.0) --> "$110.00"
> 
> Unfortunately, I can't find any specification how it showed be formated. Is
> it expected behavior?

Yes, both are right and expected behaviors because CAD's code is $.

(In reply to Dmitry Boksha from comment #3)
> Created attachment 405267 [details]
> Intl.NumberFormat problem
> 
> But something interesting happens when I'm trying to select or copy/paste
> value.

Strictly speaking, this is not WebKit's issue. They are bugs in ICU (https://github.com/unicode-org/icu).
Firefox and Chrome are bundling the latest ICU. Safari is using ICU which is installed in the system (macOS etc.).
If you upgrade the system, you will see the updated behavior in Safari.

I've tested these things with ToT JavaScriptCore with Big Sur beta 3 and ensured that they are now fixed because ICU is updated by the system update.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200729/a6dfdf28/attachment.htm>


More information about the webkit-unassigned mailing list