summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-08-18 12:11:14 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-08-18 12:11:14 +0000
commit8b1981a6c4fcb68914e5a9c635d9471dbbe6f42a (patch)
treece9d86511c40b0e1116c763563254adc4cbd2323 /dump.c
parent2483eea46d949f758e55f56d3610ffb2acf87711 (diff)
downloadperl-8b1981a6c4fcb68914e5a9c635d9471dbbe6f42a.tar.gz
UTF8 flag should be meaningful only when POK.
p4raw-id: //depot/perl@11716
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dump.c b/dump.c
index 4fb4c9d16f..6729db8156 100644
--- a/dump.c
+++ b/dump.c
@@ -1004,7 +1004,7 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
sv_catpv(d, "TYPED,");
break;
}
- if (SvUTF8(sv))
+ if (SvPOK(sv) && SvUTF8(sv))
sv_catpv(d, "UTF8");
if (*(SvEND(d) - 1) == ',')