p4raw-id: //depot/perl@32866
level++;
if (PM_GETRE(pm)) {
REGEXP *const r = PM_GETRE(pm);
- /* FIXME ORANGE - REGEXP can be 8 bit, so this is sometimes buggy: */
- SV * const tmpsv = newSVpvn(RX_PRECOMP(r),RX_PRELEN(r));
- SvUTF8_on(tmpsv);
+ SV * const tmpsv = newSVsv((SV*)r);
+ sv_utf8_upgrade(tmpsv);
Perl_xmldump_indent(aTHX_ level, file, "pre=\"%s\"\n",
SvPVX(tmpsv));
SvREFCNT_dec(tmpsv);