Bug 180356

Summary: Generate text encoding names and aliases from encodings.json (plus WebKit-specific data)
Product: WebKit Reporter: Maciej Stachowiak <mjs>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: RESOLVED CONFIGURATION CHANGED    
Severity: Normal CC: achristensen, annevk, mmaxfield
Priority: P2    
Version: Safari Technology Preview   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 179303    

Maciej Stachowiak
Reported 2017-12-04 07:40:06 PST
Generate text encoding names and aliases from encodings.json (plus WebKit-specific data). Doing it this way will remove some grungy macros that define our name tables, and will make it more obvious where we diverge from the Encoding Standard. It might be necessary to fix #19307 first to accomplish this cleanly.
Attachments
Anne van Kesteren
Comment 1 2022-09-27 06:29:43 PDT
Alex, is this still something we need after the various rounds of cleanup you did?
Anne van Kesteren
Comment 2 2022-09-27 07:37:02 PDT
Per https://github.com/web-platform-tests/wpt/pull/36096 this might still be good. We do acknowledge the x-mac-* encodings, but I don't see EUC-TW mentioned there as being non-compliant or intentional.
Anne van Kesteren
Comment 3 2023-09-21 09:38:01 PDT
Source/WebCore/PAL/pal/text/TextCodecICU.cpp maintains a registry now. It lists some non-standard encodings such as EUC-TW, but that is something to address separately. The only slight further improvement here would be generating it from encodings.json, but it's not at all clear that is worth the effort given the rate of change.
Note You need to log in before you can comment on or make changes to this bug.