<?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>216526</bug_id>
          
          <creation_ts>2020-09-14 21:33:23 -0700</creation_ts>
          <short_desc>[GTK][WPE] test262 Locale.minimize tests depend on unreleased ICU patch</short_desc>
          <delta_ts>2020-09-18 00:14:52 -0700</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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=215327</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lauro Moura">lmoura</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>pnormand</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1688577</commentid>
    <comment_count>0</comment_count>
    <who name="Lauro Moura">lmoura</who>
    <bug_when>2020-09-14 21:33:23 -0700</bug_when>
    <thetext>FAIL test/intl402/Locale/prototype/minimize/removing-likely-subtags-first-adds-likely-subtags.js (default)
Full Output:
Exception: Test262Error: &quot;und&quot;.minimize() should be &quot;en&quot; Expected SameValue(«und», «en») to be true

FAIL test/intl402/Locale/prototype/minimize/removing-likely-subtags-first-adds-likely-subtags.js (strict mode)
Full Output:
Exception: Test262Error: &quot;und&quot;.minimize() should be &quot;en&quot; Expected SameValue(«und», «en») to be true

ECMA spec: https://tc39.es/ecma402/#sec-Intl.Locale.prototype.minimize
Unicode spec: http://www.unicode.org/reports/tr35/#Likely_Subtags
Upstream test: https://github.com/tc39/test262/blame/main/test/intl402/Locale/prototype/minimize/removing-likely-subtags-first-adds-likely-subtags.js#L1

Using icu4c 67.1 after https://github.com/unicode-org/icu/pull/1140 (commit ec7e29f2b697188e5a667db2b235a3d0db8a5d20):

uloc_minimizeSubtags(nullptr) -&gt; &quot;en&quot;
uloc_minimizeSubtags(&quot;&quot;) -&gt; &quot;en&quot;
uloc_minimizeSubtags(&quot;und&quot;) -&gt; &quot;en&quot;
uloc_minimizeSubtags(&quot;und-Thai&quot;) -&gt; &quot;th&quot;

Using icu4c before it:

uloc_minimizeSubtags(nullptr) -&gt; &quot;en&quot;
uloc_minimizeSubtags(&quot;und&quot;) -&gt; &quot;&quot;
uloc_minimizeSubtags(&quot;&quot;) -&gt; &quot;&quot;
uloc_minimizeSubtags(&quot;und-Thai&quot;) -&gt; &quot;-Thai&quot;

As &quot;und&quot; language gets translated to an empty string in IntlObject.cpp, the test fails with the current ICU behavior.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>