This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
utf8n_to_uvchr(): Don't display too many bytes in msg
authorKarl Williamson <khw@cpan.org>
Sat, 17 Jun 2017 23:56:10 +0000 (17:56 -0600)
committerKarl Williamson <khw@cpan.org>
Sun, 2 Jul 2017 15:56:10 +0000 (09:56 -0600)
commit05b9033b464ce8dd2c9b33238f9aa14755d7a91a
tree623ca11f8d656eaaed1b33669d0b13a9a451ac40
parentf9cfe10663b8adab4e4b81718ad9a2bfd2ca5a33
utf8n_to_uvchr(): Don't display too many bytes in msg

When raising a message about malformed UTF-8, we shouldn't display bytes
from the next character, unless those bytes were expected to have been
part of the current one.  Tests for this will be added in future commits
in ext/XS-APItest/t/utf8_warn_base.pl
utf8.c