We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c4c496 commit 8fbaa65Copy full SHA for 8fbaa65
toke.c
@@ -1634,14 +1634,8 @@ Perl_lex_peek_unichar(pTHX_ U32 flags)
1634
bufend = PL_parser->bufend;
1635
}
1636
1637
- unichar = utf8n_to_uvchr((U8*)s, bufend-s, &retlen, UTF8_CHECK_ONLY);
1638
- if (retlen == (STRLEN)-1) {
1639
- force_out_malformed_utf8_message_((U8 *) s,
1640
- (U8 *) bufend,
1641
- 0,
1642
- MALFORMED_UTF8_DIE);
1643
- NOT_REACHED; /* NOTREACHED */
1644
- }
+
+ unichar = utf8_to_uv_or_die((U8*)s, (U8*) bufend, NULL);
1645
return unichar;
1646
} else {
1647
if (s == bufend) {
0 commit comments