DescriptionDefine a variable to distinguish system_icu from bundled_icu
Most of encoding name aliases manually added in TextCodecICU are present in Chrome's copy of ICU. So, they don't have to be added when Chrome's ICU is used.
Define 'USING_SYSTEM_ICU" when 'use_system_icu=1' and register the above encoding name aliases only when 'USING_SYSTEM_ICU' is set.
In addition, the following was done :
* Remove GBK aliases not specified in the encoding spec.
* Add tests for GBK and EUC-KR aliases in the spec that have
not been tested before.
* Add two aliases for ISO-8859-8-I regardless of whether bundled or system
ICU is used.
* Remove xA3xA0 => U+3000 override in GBK and GB18030 because
Chrome's copy of ICU already has that with
https://codereview.chromium.org/1162723008/
* Remove gbkFallback for 4 code points when bundled ICU is used for the same
reason as above.
* Remove one-way mapping from Unicode for U+22EF and U+301C
even with system_icu because Chinese IMEs on Mac do not produce them on Mac. (they're added to Webkit to be compatible with an old Mac converter, but they're not specified in the encoding spec.)
BUG=493824
TEST=Layout test fast/encoding/*
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196607
Patch Set 1 #Patch Set 2 : #Patch Set 3 : update #
Total comments: 2
Patch Set 4 : remove xA3xA0 => U 3000 override #Patch Set 5 : drop U+1E3F change until the spec resolution #Patch Set 6 : comment about U+3000 updated #Patch Set 7 : comment about U+3000 mapping updated #Patch Set 8 : add a TODO to BUILD.gn #Patch Set 9 : fix the comment in BUILD.gn #Messages
Total messages: 16 (4 generated)
|