[webkit-changes] [WebKit/WebKit] 9fd5c6: Update GB18030-2022 implementation

Alex Christensen noreply at github.com
Wed Jul 19 18:13:04 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 9fd5c67f7d04f70eecf6681ef6bea0e2eb06b95e
      https://github.com/WebKit/WebKit/commit/9fd5c67f7d04f70eecf6681ef6bea0e2eb06b95e
  Author: Alex Christensen <achristensen at apple.com>
  Date:   2023-07-19 (Wed, 19 Jul 2023)

  Changed paths:
    M LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-schinese/gb18030/gb18030-decoder.any.js
    M LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-schinese/gb18030/gb18030-encoder.html
    M Source/WebCore/PAL/pal/text/TextCodecCJK.cpp

  Log Message:
  -----------
  Update GB18030-2022 implementation
https://bugs.webkit.org/show_bug.cgi?id=259349
rdar://112507597

Reviewed by Myles C. Maxfield.

This implements the new code points exactly as specified in GB180030-2022
instead of Unicode's industry recommendations for migrating data between
GB18030-2005 and GB18030-2022.

* LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-schinese/gb18030/gb18030-decoder.any.js:
* LayoutTests/imported/w3c/web-platform-tests/encoding/legacy-mb-schinese/gb18030/gb18030-encoder.html:
* Source/WebCore/PAL/pal/text/TextCodecCJK.cpp:
(PAL::gb18030_2022Encode2Byte):
(PAL::gb18030_2022Encode4Byte):
(PAL::gb18030_2022Decode):
(PAL::TextCodecCJK::gb18030Decode):
(PAL::gbEncodeShared):
(PAL::gb18030AsymmetricEncode): Deleted.

Canonical link: https://commits.webkit.org/266173@main




More information about the webkit-changes mailing list