[Webkit-unassigned] [Bug 249986] New: Intl.NumberFormat iOS bug

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 1 10:02:34 PST 2023


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

            Bug ID: 249986
           Summary: Intl.NumberFormat iOS bug
           Product: WebKit
           Version: Safari 16
          Hardware: iPhone / iPad
                OS: iOS 16
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mzoterov at gmail.com

Created attachment 464283

  --> https://bugs.webkit.org/attachment.cgi?id=464283&action=review

Two screens with a bug

Hello and Happy New Year! 
Today I found a bug in the mobile version of the Safari engine.

The problem can be seen in detail in the screenshots, but I will describe it here:

On all mobile devices running iOS 16.x, Intl.NumberFormat behaves incorrectly, putting a comma instead of a period, which leads to some errors when trying to convert a number back using Number(...).

On the desktop version of Safari, there is no such problem, and it behaves as it should.



Check code: 

const format = new Intl.NumberFormat (`us-us`, {
style: `decimal`,
useGrouping: false
minimumFractionDigits: 0,
maximumFractionDigits: 6,
});
console.log(formate.format(1.44))

-- 
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/20230101/09e71d57/attachment.htm>


More information about the webkit-unassigned mailing list