[Webkit-unassigned] [Bug 251058] Safari's Intl.NumberFormat does not support formatting of MYR (Malaysian) currencies
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 23 20:23:43 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=251058
Yusuke Suzuki <ysuzuki at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |ysuzuki at apple.com
Resolution|--- |INVALID
--- Comment #2 from Yusuke Suzuki <ysuzuki at apple.com> ---
This is V8's bug. V8 is not supporting "MY" locale, and falling back to en-US.
```
const formatter = new Intl.NumberFormat("MY", {
style: 'currency',
currency: "MYR",
currencyDisplay: 'narrowSymbol',
minimumFractionDigits: 0,
maximumFractionDigits: 0
});
print(JSON.stringify(formatter.resolvedOptions()));
print(formatter.format(123));
```
JSC
$ VM=~/dev/OpenSource/WebKitBuild/Debug; DYLD_FRAMEWORK_PATH=$VM $VM/jsc tmp/test.js
{"locale":"my","numberingSystem":"mymr","style":"currency","currency":"MYR","currencyDisplay":"narrowSymbol","currencySign":"standard","minimumIntegerDigits":1,"minimumFractionDigits":0,"maximumFractionDigits":0,"useGrouping":"auto","notation":"standard","signDisplay":"auto","roundingMode":"halfExpand","roundingIncrement":1,"trailingZeroDisplay":"auto","roundingPriority":"auto"}
၁၂၃ RM
V8
$ v8 tmp/test.js
{"locale":"en-US","numberingSystem":"latn","style":"currency","currency":"MYR","currencyDisplay":"narrowSymbol","currencySign":"standard","minimumIntegerDigits":1,"minimumFractionDigits":0,"maximumFractionDigits":0,"useGrouping":"auto","notation":"standard","signDisplay":"auto","roundingMode":"halfExpand","roundingIncrement":1,"trailingZeroDisplay":"auto","roundingPriority":"auto"}
RM 123
SpiderMonkey
$ sm tmp/test.js
{"locale":"my","numberingSystem":"mymr","style":"currency","currency":"MYR","currencyDisplay":"narrowSymbol","currencySign":"standard","minimumIntegerDigits":1,"minimumFractionDigits":0,"maximumFractionDigits":0,"useGrouping":"auto","notation":"standard","signDisplay":"auto","roundingMode":"halfExpand","roundingIncrement":1,"trailingZeroDisplay":"auto","roundingPriority":"auto"}
၁၂၃ RM
--
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/20230124/65cfc990/attachment.htm>
More information about the webkit-unassigned
mailing list