Skip to content

Commit 649e836

Browse files
committed
check_utf8_print: Use utf8_to-uv_or_die not utf8_to_uvchr_buf
1 parent c19a5ce commit 649e836

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utf8.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4704,7 +4704,7 @@ Perl_check_utf8_print(pTHX_ const U8* s, const STRLEN len)
47044704
/* This has a different warning than the one the called
47054705
* function would output, so can't just call it, unlike we
47064706
* do for the non-chars and above-unicodes */
4707-
UV uv = utf8_to_uvchr_buf(s, e, NULL);
4707+
UV uv = utf8_to_uv_or_die(s, e, NULL);
47084708
Perl_warner(aTHX_ packWARN(WARN_SURROGATE),
47094709
"Unicode surrogate U+%04" UVXf " is illegal in UTF-8",
47104710
uv);

0 commit comments

Comments
 (0)