Remove TEC support and all TEC-only encodings except EUC-TW (which now uses ICU)
authormjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 19 Nov 2017 03:42:49 +0000 (03:42 +0000)
committermjs@apple.com <mjs@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 19 Nov 2017 03:42:49 +0000 (03:42 +0000)
commit7f5390aeb525c7b02725c49cd51cb19fa98a0e71
treef65ef487689fb0b4e72ef0430e0438229b6fe7c7
parent8ee8d06c464a02155ad646e531375661fb1a4940
Remove TEC support and all TEC-only encodings except EUC-TW (which now uses ICU)
https://bugs.webkit.org/show_bug.cgi?id=179582

Reviewed by Darin Adler.

Source/WebCore:

Already covered by fast/encoding/legacy-tec-encodings.html

* platform/text/TextCodecICU.cpp: Add support for EUC-TW.

Remove all vestiges of TEC text codec and its related autogeneration scripts.

* DerivedSources.make:
* PlatformMac.cmake:
* SourcesMac.txt:
* WebCore.order:
* WebCore.xcodeproj/project.pbxproj:
* platform/ThreadGlobalData.cpp:
(WebCore::ThreadGlobalData::ThreadGlobalData): No more cached TEC decoder.
(WebCore::ThreadGlobalData::destroy): ditto
* platform/ThreadGlobalData.h:
(WebCore::ThreadGlobalData::ThreadGlobalData::cachedConverterTEC): Deleted.
* platform/text/TextEncodingRegistry.cpp:
(WebCore::extendTextCodecMaps): Don't add TEC decoders on MAc.
* platform/text/mac/CharsetData.h: Removed.
* platform/text/mac/TextCodecMac.cpp: Removed.
* platform/text/mac/TextCodecMac.h: Removed.
* platform/text/mac/character-sets.txt: Removed.
* platform/text/mac/ios-encodings.txt: Removed.
* platform/text/mac/mac-encodings.txt: Removed.
* platform/text/mac/make-charset-table.pl: Removed.

LayoutTests:

* fast/encoding/legacy-tec-encodings.html: Added. Verify that we
no longer support these encodings.
* fast/encoding/legacy-tec-encodings-expected.txt: Added.
* platform/mac/fast/encoding/xnextstep-decoding.html: Removed. We no longer support this encoding.
* platform/mac/fast/encoding/xnextstep-decoding-expected.txt: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@225027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
22 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/encoding/legacy-tec-encodings-expected.txt [new file with mode: 0644]
LayoutTests/fast/encoding/legacy-tec-encodings.html [new file with mode: 0644]
LayoutTests/platform/mac/fast/encoding/xnextstep-decoding-expected.txt [deleted file]
LayoutTests/platform/mac/fast/encoding/xnextstep-decoding.html [deleted file]
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.make
Source/WebCore/PlatformMac.cmake
Source/WebCore/SourcesMac.txt
Source/WebCore/WebCore.order
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/platform/ThreadGlobalData.cpp
Source/WebCore/platform/ThreadGlobalData.h
Source/WebCore/platform/text/TextCodecICU.cpp
Source/WebCore/platform/text/TextEncodingRegistry.cpp
Source/WebCore/platform/text/mac/CharsetData.h [deleted file]
Source/WebCore/platform/text/mac/TextCodecMac.cpp [deleted file]
Source/WebCore/platform/text/mac/TextCodecMac.h [deleted file]
Source/WebCore/platform/text/mac/character-sets.txt [deleted file]
Source/WebCore/platform/text/mac/ios-encodings.txt [deleted file]
Source/WebCore/platform/text/mac/mac-encodings.txt [deleted file]
Source/WebCore/platform/text/mac/make-charset-table.pl [deleted file]