php-src/ext/mbstring/tests/data
Alex Dowad b67e358e75 JIS7/JIS8 encoding: handle invalid 2nd byte for Kanji correctly
Previously, in ISO-2022-JP/JIS7/JIS8, if an escape sequence (starting with 0x1B)
appeared where the 2nd byte of a multibyte character should have been, mbstring
would forget all about the truncated multibyte character and happily accept the
escape sequence. However, such sequences are not legal and should be flagged as
errors.

Also, any other illegal bytes appearing where the 2nd byte of a multibyte
character was expected were just passed through quietly to the output. Fix that.

Also add a test suite for both ISO-2022-JP and JIS7/JIS8. (These are extremely
similar encodings; JIS7 and JIS8 are variants of ISO-2022-JP. mbstring's 'JIS'
is actually a combination of JIS7 _and_ JIS8, since the extensions which each
one adds to ISO-2022-JP are disjoint.)
2021-01-14 22:31:31 +02:00
..
8859-1.txt
8859-2.txt
8859-3.txt
8859-4.txt
8859-5.txt
8859-6.txt
8859-7.txt
8859-8.txt
8859-9.txt
8859-10.txt
8859-11.txt
8859-13.txt
8859-14.txt
8859-15.txt
8859-16.txt
ARMSCII-8.txt Add test suite for ARMSCII-8 encoding 2020-11-02 21:31:06 +02:00
CP850.txt Add test suite for CP850 encoding 2020-11-02 21:31:06 +02:00
CP866.txt Add test suite for CP866 encoding 2020-11-02 21:31:06 +02:00
CP932.txt Enhance handling of CP932 text encoding 2020-11-25 19:52:19 +02:00
CP1251.txt Add test suite for CP1251 encoding 2020-11-02 21:31:05 +02:00
CP1252.txt
CP1254.txt Add test suite for CP1254 encoding 2020-11-02 21:31:05 +02:00
CP51932.txt Enhance handling of CP51932 encoding 2020-11-25 20:51:44 +02:00
EmojiSources.txt Fix mbstring support for SJIS-Mobile (DoCoMo, KDDI, and Softbank variants of Shift-JIS) 2020-11-25 20:51:44 +02:00
EUC-JP.txt Fix mbstring support for EUC-JP text encoding 2020-11-09 13:45:17 +02:00
ISO-2022-JP-2004-JISX0213.txt ISO-2022-JP-2004 conversion: handle invalid characters correctly 2021-01-14 22:26:24 +02:00
JISX0201.txt JIS7/JIS8 encoding: handle invalid 2nd byte for Kanji correctly 2021-01-14 22:31:31 +02:00
JISX0208.txt ISO-2022-JP-2004 conversion: handle invalid characters correctly 2021-01-14 22:26:24 +02:00
JISX0212.txt JIS7/JIS8 encoding: handle invalid 2nd byte for Kanji correctly 2021-01-14 22:31:31 +02:00
KOI8-R.txt Add test suite for KOI8-R encoding 2020-11-02 21:31:06 +02:00
KOI8-U.txt Add test suite for KOI8-U encoding 2020-11-02 21:31:06 +02:00
MacJapanese-SJIS.txt Add test suite for SJIS-mac encoding 2020-11-11 11:18:58 +02:00
SHIFTJIS.txt Fix mbstring support for Shift-JIS 2020-11-09 13:45:16 +02:00
SJIS-2004.txt Add test suite for SJIS-2004 encoding 2020-11-11 11:18:58 +02:00