summaryrefslogtreecommitdiff
path: root/dump.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-10-05 13:54:08 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-10-05 13:54:08 +0000
commitbc128d2952f90d40a463f42c5774a7d86be21f10 (patch)
treee6b12aa73b59e6039abc5ed5a9cd8764bdebd12d /dump.c
parent77524eb8e06bb850393ab3c3862841363462ff3d (diff)
downloadperl-bc128d2952f90d40a463f42c5774a7d86be21f10.tar.gz
Don't assume that %x is good for displaying UVs.
p4raw-id: //depot/perl@12341
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 3d24ccb8d3..59bd5326a5 100644
--- a/dump.c
+++ b/dump.c
@@ -156,7 +156,7 @@ Perl_sv_uni_display(pTHX_ SV *dsv, SV *ssv, STRLEN pvlim)
break;
}
u = utf8_to_uvchr((U8*)s, 0);
- Perl_sv_catpvf(aTHX_ dsv, "\\x{%x}", u);
+ Perl_sv_catpvf(aTHX_ dsv, "\\x{%"UVxf"}", u);
}
sv_catpvn(dsv, "\"", 1);
if (truncated)