Changeset 268843 in webkit
- Timestamp:
- Oct 21, 2020, 4:09:27 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
-
LayoutTests/imported/w3c/ChangeLog (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/encoding/iso-2022-jp-encoder-expected.txt (modified) (1 diff)
-
LayoutTests/imported/w3c/web-platform-tests/encoding/iso-2022-jp-encoder.html (modified) (1 diff)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/platform/text/TextCodecCJK.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r268812 r268843 1 2020-10-21 Alex Christensen <achristensen@webkit.org> 2 3 Implement ISO-2022-JP encoder step 3 4 https://bugs.webkit.org/show_bug.cgi?id=218046 5 6 Reviewed by Darin Adler. 7 8 * web-platform-tests/encoding/iso-2022-jp-encoder-expected.txt: 9 * web-platform-tests/encoding/iso-2022-jp-encoder.html: 10 1 11 2020-10-21 Chris Dumez <cdumez@apple.com> 2 12 -
trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/iso-2022-jp-encoder-expected.txt
r267659 r268843 2 2 PASS iso-2022-jp encoder: very basic 3 3 PASS iso-2022-jp encoder: basics 4 PASS iso-2022-jp encoder: Katakana 5 PASS iso-2022-jp encoder: jis0208 4 6 PASS iso-2022-jp encoder: SO/SI ESC 7 PASS iso-2022-jp encoder: Roman SO/SI ESC 8 PASS iso-2022-jp encoder: Katakana SO/SI ESC 9 PASS iso-2022-jp encoder: jis0208 SO/SI ESC 5 10 PASS iso-2022-jp encoder: U+FFFD 11 PASS iso-2022-jp encoder: Roman U+FFFD 12 PASS iso-2022-jp encoder: Katakana U+FFFD 13 PASS iso-2022-jp encoder: jis0208 U+FFFD 6 14 -
trunk/LayoutTests/imported/w3c/web-platform-tests/encoding/iso-2022-jp-encoder.html
r256730 r268843 13 13 } 14 14 15 encode("s", "s", "very basic") 16 encode("\u00A5\u203Es\\\uFF90\u4F69", "%1B(J\\~s%1B(B\\%1B$B%_PP%1B(B", "basics") 17 encode("\x0E\x0F\x1Bx", "%0E%0F%1Bx", "SO/SI ESC") 15 encode("s", "s", "very basic"); 16 encode("\u00A5\u203Es\\\uFF90\u4F69", "%1B(J\\~s%1B(B\\%1B$B%_PP%1B(B", "basics"); 17 encode("\uFF61", "%1B$B!%23%1B(B", "Katakana"); 18 encode("\u0393", "%1B$B&%23%1B(B", "jis0208"); 19 encode("\x0E\x0F\x1Bx", "%26%2365533%3B%26%2365533%3B%26%2365533%3Bx", "SO/SI ESC"); 20 encode("\u203E\x0E\x0F\x1Bx", "%1B(J~%26%2365533%3B%26%2365533%3B%26%2365533%3Bx%1B(B", "Roman SO/SI ESC"); 21 encode("\uFF61\x0E\x0F\x1Bx", "%1B$B!%23%1B(B%26%2365533%3B%26%2365533%3B%26%2365533%3Bx", "Katakana SO/SI ESC"); 22 encode("\u0393\x0E\x0F\x1Bx", "%1B$B&%23%1B(B%26%2365533%3B%26%2365533%3B%26%2365533%3Bx", "jis0208 SO/SI ESC"); 18 23 encode("\uFFFD", "%26%2365533%3B", "U+FFFD"); 24 encode("\u203E\uFFFD", "%1B(J~%26%2365533%3B%1B(B", "Roman U+FFFD"); 25 encode("\uFF61\uFFFD", "%1B$B!%23%1B(B%26%2365533%3B", "Katakana U+FFFD"); 26 encode("\u0393\uFFFD", "%1B$B&%23%1B(B%26%2365533%3B", "jis0208 U+FFFD"); 19 27 </script> -
trunk/Source/WebCore/ChangeLog
r268841 r268843 1 2020-10-21 Alex Christensen <achristensen@webkit.org> 2 3 Implement ISO-2022-JP encoder step 3 4 https://bugs.webkit.org/show_bug.cgi?id=218046 5 6 Reviewed by Darin Adler. 7 8 https://encoding.spec.whatwg.org/#iso-2022-jp-encoder step 3 was put in a few years ago and recently implemented by Firefox. 9 Covered by updated and newly passing web platform tests. 10 11 * platform/text/TextCodecCJK.cpp: 12 (WebCore::iso2022JPEncode): 13 1 14 2020-10-21 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/Source/WebCore/platform/text/TextCodecCJK.cpp
r266729 r268843 484 484 Function<void(UChar32)> parseCodePoint; 485 485 parseCodePoint = [&] (UChar32 codePoint) { 486 if ((state == State::ASCII || state == State::Roman) && (codePoint == 0x000E || codePoint == 0x000F || codePoint == 0x001B)) { 487 statefulUnencodableHandler(replacementCharacter, result); 488 return; 489 } 486 490 if (state == State::ASCII && isASCII(codePoint)) { 487 491 result.append(codePoint);
Note:
See TracChangeset
for help on using the changeset viewer.