(and it very probably did).
p4raw-id: //depot/perl@14243
if (elen) {
if (is_utf8 != has_utf8) {
if (is_utf8) {
- if (SvCUR(sv)) {
+ if (SvCUR(sv))
sv_utf8_upgrade(sv);
- p = SvEND(sv);
- }
}
else {
SV *nsv = sv_2mortal(newSVpvn(eptr, elen));
eptr = SvPVX(nsv);
elen = SvCUR(nsv);
}
+ SvGROW(sv, SvCUR(sv) + elen + 1);
+ p = SvEND(sv);
}
Copy(eptr, p, elen, char);
p += elen;