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 c19a5ce commit 649e836Copy full SHA for 649e836
utf8.c
@@ -4704,7 +4704,7 @@ Perl_check_utf8_print(pTHX_ const U8* s, const STRLEN len)
4704
/* This has a different warning than the one the called
4705
* function would output, so can't just call it, unlike we
4706
* do for the non-chars and above-unicodes */
4707
- UV uv = utf8_to_uvchr_buf(s, e, NULL);
+ UV uv = utf8_to_uv_or_die(s, e, NULL);
4708
Perl_warner(aTHX_ packWARN(WARN_SURROGATE),
4709
"Unicode surrogate U+%04" UVXf " is illegal in UTF-8",
4710
uv);
0 commit comments