History log of /PHP-8.1/ext/mbstring/tests/data/CP949.txt (Results 1 – 1 of 1)
Revision Date Author Comments
# caeaa662 08-May-2021 Alex Dowad

Strict conversion of UHC text to Unicode

Previously, mbstring would accept a lot of things which were not valid
UHC text. No more.

- Don't allow single-byte control characters t

Strict conversion of UHC text to Unicode

Previously, mbstring would accept a lot of things which were not valid
UHC text. No more.

- Don't allow single-byte control characters to appear where the 2nd
byte of a multi-byte character should be.
- Validate that the 2nd byte of a multi-byte character is in the
expected range.
- Treat it as an error if a multi-byte character is truncated.

Also add a test suite to confirm that UHC conversion (both to and from
Unicode) works according to spec.

show more ...