<?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>265261</bug_id>
          
          <creation_ts>2023-11-22 12:10:31 -0800</creation_ts>
          <short_desc>Unsupport encodings (e.g., &apos;x-mac-turkish&apos;, &apos;x-mac-greek&apos; etc.) WPT failures</short_desc>
          <delta_ts>2025-02-10 06:27:38 -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>Text</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://wpt.live/encoding/unsupported-labels.window.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>267969</dependson>
    
    <dependson>270658</dependson>
          <blocked>179303</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Ahmad Saleem">ahmad.saleem792</reporter>
          <assigned_to name="Ahmad Saleem">ahmad.saleem792</assigned_to>
          <cc>annevk</cc>
    
    <cc>ap</cc>
    
    <cc>commit-queue</cc>
    
    <cc>karlcow</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1994431</commentid>
    <comment_count>0</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-11-22 12:10:31 -0800</bug_when>
    <thetext>Hi Team,

While going through WPT failures, I came across following failing test in Safari / WebKit.

WPT Test Case: https://wpt.fyi/results/encoding/unsupported-labels.window.html?label=master&amp;label=experimental&amp;aligned&amp;q=safari%3Afail

Just wanted to raise so we can track it.

Adding &apos;BrowserCompat&apos; since only Safari / WebKit is failing them.

___

Following are not supported by Encoding Standard:

&gt; euc-tw
&gt; windows-936-2000
&gt; x-mac-ce
&gt; x-mac-centraleurroman
&gt; x-mac-greek
&gt; x-mac-turkish

^ few are mentioned here with comment that they are not in standard: https://searchfox.org/wubkat/source/Source/WebCore/PAL/pal/text/TextCodecICU.cpp#97

____

Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1995673</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-11-29 12:11:20 -0800</bug_when>
    <thetext>&lt;rdar://problem/118944539&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2001348</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-21 06:25:34 -0800</bug_when>
    <thetext>&gt; Source/WebCore/PAL/pal/text/TextCodecCJK.cpp

In -- TextCodecCJK::registerEncodingNames --

Remove &gt; &quot;windows-936-2000&quot;_s

&gt; Source/WebCore/PAL/pal/text/TextCodecICU.cpp

In -- DECLARE_ALIASE --

Remove from &apos;/ Encodings below are not in the standard.&apos; onward:

DECLARE_ALIASES(x_mac_greek, &quot;windows-10006&quot;_s, &quot;macgr&quot;_s, &quot;x-MacGreek&quot;_s);
DECLARE_ALIASES(x_mac_centraleurroman, &quot;windows-10029&quot;_s, &quot;x-mac-ce&quot;_s, &quot;macce&quot;_s, &quot;maccentraleurope&quot;_s, &quot;x-MacCentralEurope&quot;_s);
DECLARE_ALIASES(x_mac_turkish, &quot;windows-10081&quot;_s, &quot;mactr&quot;_s, &quot;x-MacTurkish&quot;_s);

and

In -- EncodingName --

Remove:

// Encodings below are not in the standard.
    DECLARE_ENCODING_NAME(&quot;x-mac-greek&quot;_s, x_mac_greek),
    DECLARE_ENCODING_NAME(&quot;x-mac-centraleurroman&quot;_s, x_mac_centraleurroman),
    DECLARE_ENCODING_NAME(&quot;x-mac-turkish&quot;_s, x_mac_turkish),
    DECLARE_ENCODING_NAME_NO_ALIASES(&quot;EUC-TW&quot;_s),

___

It progresses all failing WPT tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002278</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-29 22:45:08 -0800</bug_when>
    <thetext>@Karl - is there any internal requirement by Apple to retain or I can try to do PR and match other browsers?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2002302</commentid>
    <comment_count>4</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-12-30 06:31:17 -0800</bug_when>
    <thetext>Just running through EWS to see how many more tests to modify and if there are anything else platform specific - https://github.com/WebKit/WebKit/pull/22273 (In Draft).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2018951</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2024-03-05 19:17:07 -0800</bug_when>
    <thetext>Just to update - looks now ready to go (even if we don&apos;t land right now - it will be good for future reference) - https://github.com/WebKit/WebKit/pull/22273</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019376</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-03-07 10:41:22 -0800</bug_when>
    <thetext>Committed 275797@main (a78cd83130cb): &lt;https://commits.webkit.org/275797@main&gt;

Reviewed commits have been landed. Closing PR #22273 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2019445</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2024-03-07 13:36:42 -0800</bug_when>
    <thetext>Re-opened since this is blocked by bug 270658</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2093471</commentid>
    <comment_count>8</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2025-02-10 06:27:38 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/40354</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>