Re-order one DO_UTF8 to be after the SvPV.
Nicholas Clark [Mon, 1 May 2006 11:16:13 +0000 (11:16 +0000)]
p4raw-id: //depot/perl@28035

ext/Data/Dumper/Dumper.xs

index 3dd7318..255a6d9 100644 (file)
@@ -642,8 +642,8 @@ DD_dump(pTHX_ SV *val, const char *name, STRLEN namelen, SV *retval, HV *seenhv,
                    hval = hv_iterval((HV*)ival, entry);
                }
 
-               do_utf8 = DO_UTF8(keysv);
                key = SvPV(keysv, keylen);
+               do_utf8 = DO_UTF8(keysv);
                klen = keylen;
 
                 sv_catsv(retval, totpad);