projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49ce4d3
)
SvUTF8 can be present on scalars other than PVs
author
Nicholas Clark
<nick@ccl4.org>
Sat, 26 Feb 2005 09:33:30 +0000
(09:33 +0000)
committer
Nicholas Clark
<nick@ccl4.org>
Sat, 26 Feb 2005 09:33:30 +0000
(09:33 +0000)
(specifically references with overloaded stringification)
p4raw-id: //depot/perl@23997
dump.c
patch
|
blob
|
history
diff --git
a/dump.c
b/dump.c
index
5f0bef2
..
00f989f
100644
(file)
--- 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) == ',')