mirror of
https://github.com/Perl/perl5.git
synced 2026-01-26 16:39:36 +00:00
Prefer utf8_to_bytes_overwrite to utf8_to_bytes
The latter has never lost its experimental status
This commit is contained in:
parent
63da182b91
commit
71404d33b1
2
pp.c
2
pp.c
@ -2789,7 +2789,7 @@ S_scomplement(pTHX_ SV *targ, SV *sv)
|
||||
tmps = (U8*)SvPV_nomg(TARG, len);
|
||||
|
||||
if (SvUTF8(TARG)) {
|
||||
if (len && ! utf8_to_bytes(tmps, &len)) {
|
||||
if (len && ! utf8_to_bytes_overwrite(&tmps, &len)) {
|
||||
Perl_croak(aTHX_ FATAL_ABOVE_FF_MSG, PL_op_desc[PL_op->op_type]);
|
||||
}
|
||||
SvCUR_set(TARG, len);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user