<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>218139</bug_id>
          
          <creation_ts>2020-10-23 15:01:31 -0700</creation_ts>
          <short_desc>Intl.NumberFormat formats ar-AE numbers differently from other browsers</short_desc>
          <delta_ts>2022-02-03 21:38:35 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>JavaScriptCore</component>
          <version>Safari 14</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rob Snow">rsnow</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>smoley</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1701151</commentid>
    <comment_count>0</comment_count>
    <who name="Rob Snow">rsnow</who>
    <bug_when>2020-10-23 15:01:31 -0700</bug_when>
    <thetext>What steps will reproduce the problem?
(1) Open console
(2) Run `new Intl.NumberFormat(&quot;ar-AE&quot;, {useGrouping: false}).format(9876543210)`

What is the expected result?
&quot;٩٨٧٦٥٤٣٢١٠&quot;

What happens instead?
&quot;9876543210&quot;

See https://github.com/unicode-org/cldr/blob/master/common/main/ar_AE.xml#L42</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701253</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2020-10-24 12:13:49 -0700</bug_when>
    <thetext>This is an intentional choice in Apple&apos;s ICU (for Apple employees, see rdar://problem/45142422&amp;21778421).

Rob, are you reporting this as simply a mismatch with CLDR, or does this cause issues?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701539</commentid>
    <comment_count>2</comment_count>
    <who name="Rob Snow">rsnow</who>
    <bug_when>2020-10-26 11:06:02 -0700</bug_when>
    <thetext>Can you explain more of why this is an intentional choice? (for us non-Apple folk)
We are relying on CLDR to handle number formatting and it&apos;s appearing differently between the browsers. This is problematic because I need to parse numbers as well, for which I also rely on CLDR because the Intl object doesn&apos;t have a corresponding number parser. I&apos;d prefer to not have Safari specific code to override this. It certainly causes a loss of faith as well because I don&apos;t know how many more of these intentional differences exist. It also means it&apos;s harder for me to write unit tests for because Node uses CLDR as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775940</commentid>
    <comment_count>3</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2021-07-09 01:13:31 -0700</bug_when>
    <thetext>Anyway, Intl feature is not ensuring the underlying data, and it depends on the implementation.
Please report the feedback against Apple radar since this is the intension in AppleICU, not WebKit ;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1775941</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-07-09 01:22:23 -0700</bug_when>
    <thetext>&lt;rdar://problem/80365345&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1837240</commentid>
    <comment_count>5</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-02-03 20:39:59 -0800</bug_when>
    <thetext>It is now upstreamed to CLDR :)
https://github.com/unicode-org/cldr/commit/c601fc4fd1321f6af4a5f9ae67f4f198305e5c63</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1837250</commentid>
    <comment_count>6</comment_count>
    <who name="Myles C. Maxfield">mmaxfield</who>
    <bug_when>2022-02-03 21:20:44 -0800</bug_when>
    <thetext>is &quot;WONTFIX&quot; really the right resolution? If the bug report is &quot;Intl.NumberFormat formats ar-AE numbers differently from other browsers&quot; then a legit solution is &quot;make the other browsers match WebKit.&quot;

Seems like MOVED would be a better resolution.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1837252</commentid>
    <comment_count>7</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-02-03 21:38:35 -0800</bug_when>
    <thetext>Sounds good. Changed it to MOVED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>