summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-02-26 09:33:30 +0000
committerNicholas Clark <nick@ccl4.org>2005-02-26 09:33:30 +0000
commit86f0d186b5906b677cf64db5216b59d27c937db6 (patch)
treed97a7c490981a88382e061d45ee01f00e4baed41 /dump.c
parent49ce4d3149169150fd3bcc3a0a4e9505dd47ab5e (diff)
downloadperl-86f0d186b5906b677cf64db5216b59d27c937db6.tar.gz
SvUTF8 can be present on scalars other than PVs
(specifically references with overloaded stringification) p4raw-id: //depot/perl@23997
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 5f0bef2138..00f989f5fe 100644
--- a/dump.c
+++ b/dump.c
@@ -1194,7 +1194,8 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
sv_catpv(d, "TYPED,");
break;
}
- if ((SvPOK(sv) || SvPOKp(sv)) && SvUTF8(sv))
+ /* SVphv_SHAREKEYS is also 0x20000000 */
+ if ((type != SVt_PVHV) && SvUTF8(sv))
sv_catpv(d, "UTF8");
if (*(SvEND(d) - 1) == ',')