From: Jarkko Hietaniemi Date: Fri, 5 Oct 2001 13:54:08 +0000 (+0000) Subject: Don't assume that %x is good for displaying UVs. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=bc128d2952f90d40a463f42c5774a7d86be21f10;p=p5sagit%2Fp5-mst-13.2.git Don't assume that %x is good for displaying UVs. p4raw-id: //depot/perl@12341 --- diff --git a/dump.c b/dump.c index 3d24ccb..59bd532 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)