Skip to content

Commit f34ffac

Browse files
committed
sv_vcatpvfn_flags: Use utf8_to_uv_or_die
This is a change in behavior for malformed input. Previously it warned and substituted 0; the warnings remain, but now it substitutes the REPLACEMENT CHARACTER.
1 parent c2ae512 commit f34ffac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sv.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -13081,8 +13081,7 @@ Perl_sv_vcatpvfn_flags(pTHX_ SV *const sv, const char *const pat, const STRLEN p
1308113081
if (!veclen)
1308213082
goto done_valid_conversion;
1308313083
if (vec_utf8)
13084-
uv = utf8n_to_uvchr(vecstr, veclen, &ulen,
13085-
UTF8_ALLOW_ANYUV);
13084+
uv = utf8_to_uv_or_die(vecstr, vecstr + veclen, &ulen);
1308613085
else {
1308713086
uv = *vecstr;
1308813087
ulen = 1;

0 commit comments

Comments
 (0)