summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorAbhijit Menon-Sen <ams@wiw.org>2002-11-05 03:43:46 +0000
committerAbhijit Menon-Sen <ams@wiw.org>2002-11-05 03:43:46 +0000
commit34aa158557bf899117e749eb5a8375ffe870f5d0 (patch)
treecb258c547a71a7e45c1a35a243349b250bcbf02c /dump.c
parent107c23634640452662c18f6ae1ae0d2920a4cf3b (diff)
downloadperl-34aa158557bf899117e749eb5a8375ffe870f5d0.tar.gz
1. Update pp_ucfirst to enter the UTF-8 branch only if the first
character is UTF-8. (Copied from pp_lcfirst.) 2. sv_dump() should display FLAGS=...,UTF8 for both POK and pPOK. p4raw-id: //depot/perl@18107
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 ab74f41df5..5dc1e5cb3d 100644
--- a/dump.c
+++ b/dump.c
@@ -1021,7 +1021,7 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
sv_catpv(d, "TYPED,");
break;
}
- if (SvPOK(sv) && SvUTF8(sv))
+ if ((SvPOK(sv) || SvPOKp(sv)) && SvUTF8(sv))
sv_catpv(d, "UTF8");
if (*(SvEND(d) - 1) == ',')