This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
fix assertions for UTF8_TWO_BYTE_HI/LO
authorHugo van der Sanden <hv@crypt.org>
Thu, 12 Feb 2015 00:11:31 +0000 (00:11 +0000)
committerHugo van der Sanden <hv@crypt.org>
Thu, 12 Feb 2015 12:30:01 +0000 (12:30 +0000)
commitd52b857690116b4b653e6dd1781067e8c72e6f62
treefa3407e717f509b2d1d9e31a8f102a14d8d02c0b
parentf624cb736a20c433d4e81c202222fc4ff50afe4c
fix assertions for UTF8_TWO_BYTE_HI/LO

Replace the stricter MAX_PORTABLE_UTF8_TWO_BYTE check with a looser
MAX_UTF8_TWO_BYTE check, else we can't correctly convert codepoints in
the range 0x400-0x7ff from utf16 to utf8 on non-ebcdic platforms.
t/comp/utf.t
t/io/bom.t
utf8.h