summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-08-18 03:22:42 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-08-18 03:22:42 +0000
commit9fe74edeee952c534737f11a9cb0e134fbef1921 (patch)
tree5031b93805bd24696656b64bc810ab2b4d9e6f99 /dump.c
parentaf903f693e49116b2e364fd529103fa436976640 (diff)
downloadperl-9fe74edeee952c534737f11a9cb0e134fbef1921.tar.gz
UTF8 wasn't printing for PVMGs.
p4raw-id: //depot/perl@11713
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index c2f7746b8e..4fb4c9d16f 100644
--- a/dump.c
+++ b/dump.c
@@ -994,7 +994,6 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
default:
if (SvEVALED(sv)) sv_catpv(d, "EVALED,");
if (SvIsUV(sv)) sv_catpv(d, "IsUV,");
- if (SvUTF8(sv)) sv_catpv(d, "UTF8");
break;
case SVt_PVBM:
if (SvTAIL(sv)) sv_catpv(d, "TAIL,");
@@ -1005,6 +1004,8 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
sv_catpv(d, "TYPED,");
break;
}
+ if (SvUTF8(sv))
+ sv_catpv(d, "UTF8");
if (*(SvEND(d) - 1) == ',')
SvPVX(d)[--SvCUR(d)] = '\0';