summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-02-06 20:45:30 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-02-06 20:45:30 +0000
commit3818b22bb9ef820a2553aa5e3504220f3b156f21 (patch)
tree53e97cd4154273174e1cb2cc51b69419507ec6a4 /dump.c
parentd308986b5b369caa1602a636a5e2ecfa149dfc89 (diff)
downloadperl-3818b22bb9ef820a2553aa5e3504220f3b156f21.tar.gz
set SvUTF8 on vectors only if there are chars > 127; update copyright
years (from Gisle Aas) p4raw-id: //depot/perl@5009
Diffstat (limited to 'dump.c')
-rw-r--r--dump.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/dump.c b/dump.c
index e3648ead93..569dc8c923 100644
--- a/dump.c
+++ b/dump.c
@@ -1,6 +1,6 @@
/* dump.c
*
- * Copyright (c) 1991-1999, Larry Wall
+ * Copyright (c) 1991-2000, Larry Wall
*
* You may distribute under the terms of either the GNU General Public
* License or the Artistic License, as specified in the README file.
@@ -131,9 +131,9 @@ Perl_pv_display(pTHX_ SV *sv, char *pv, STRLEN cur, STRLEN len, STRLEN pvlim)
}
else {
if (cur && isDIGIT(*(pv+1)))
- Perl_sv_catpvf(aTHX_ sv, "\\%03o", *pv);
+ Perl_sv_catpvf(aTHX_ sv, "\\%03o", (U8)*pv);
else
- Perl_sv_catpvf(aTHX_ sv, "\\%o", *pv);
+ Perl_sv_catpvf(aTHX_ sv, "\\%o", (U8)*pv);
}
}
sv_catpvn(sv, "\"", 1);
@@ -846,6 +846,7 @@ Perl_do_sv_dump(pTHX_ I32 level, PerlIO *file, SV *sv, I32 nest, I32 maxnest, bo
default:
if (SvEVALED(sv)) sv_catpv(d, "EVALED,");
if (SvIsUV(sv)) sv_catpv(d, "IsUV,");
+ if (SvUTF8(sv)) sv_catpv(d, "UTF8");
break;
case SVt_PVBM:
if (SvTAIL(sv)) sv_catpv(d, "TAIL,");