This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
UTF8 flag should be meaningful only when POK.
authorJarkko Hietaniemi <jhi@iki.fi>
Sat, 18 Aug 2001 12:11:14 +0000 (12:11 +0000)
committerJarkko Hietaniemi <jhi@iki.fi>
Sat, 18 Aug 2001 12:11:14 +0000 (12:11 +0000)
p4raw-id: //depot/perl@11716

dump.c

diff --git a/dump.c b/dump.c
index 4fb4c9d..6729db8 100644 (file)
--- 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) == ',')