Don't assume that %x is good for displaying UVs.
Jarkko Hietaniemi [Fri, 5 Oct 2001 13:54:08 +0000 (13:54 +0000)]
p4raw-id: //depot/perl@12341

dump.c

diff --git a/dump.c b/dump.c
index 3d24ccb..59bd532 100644 (file)
--- 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)