Date: 01 Dec 2005 06:20:14 -0800
Message-ID: <lroe406grl.fsf_-_@caliper.activestate.com>
Subject: [PATCH] Suppress "0b" prefix for sprintf("%#b", 0)
From: Gisle Aas <gisle@ActiveState.com>
Date: 01 Dec 2005 06:11:44 -0800
Message-ID: <lrsltc6h5r.fsf_-_@caliper.activestate.com>
p4raw-id: //depot/perl@26237
*--ptr = '0';
break;
case 2:
+ if (!uv)
+ alt = FALSE;
do {
dig = uv & 1;
*--ptr = '0' + dig;
/* calculate width before utf8_upgrade changes it */
have = esignlen + zeros + elen;
+ if (have < zeros)
+ Perl_croak_nocontext(PL_memory_wrap);
if (is_utf8 != has_utf8) {
if (is_utf8) {
>%4$K %d< >[45, 67]< >%4$K 45 INVALID<
>%d %K %d< >[23, 45]< >23 %K 45 INVALID<
>%*v*999\$d %d %d< >[11, 22, 33]< >%*v*999\$d 11 22 INVALID<
+>%#b< >0< >0<
+>%#o< >0< >0<
+>%#x< >0< >0<