From: Dominic Dunlop Date: Tue, 20 Jun 2006 21:49:07 +0000 (+0200) Subject: Re: [PATCH] Re: [perl #39530] printf: bad formatting of hexadecimal conversion of... X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=52e1aa67f2b646a7f0f648bccb5a6242cd15f8a0;p=p5sagit%2Fp5-mst-13.2.git Re: [PATCH] Re: [perl #39530] printf: bad formatting of hexadecimal conversion of binary string using vector flag Message-Id: p4raw-id: //depot/perl@28411 --- diff --git a/t/op/sprintf.t b/t/op/sprintf.t index 3e038d4..c7dc49f 100755 --- a/t/op/sprintf.t +++ b/t/op/sprintf.t @@ -434,18 +434,36 @@ __END__ >%v_< >''< >%v_ INVALID< >%v#x< >''< >%v#x INVALID< >%v02x< >"foo\012"< >66.6f.6f.0a< ->%#v.8b< >"a\000b"< >0b01100001.00000000.0b01100010< ->%#v.4o< >"a\000b"< >0141.0000.0142< ->%#v.3i< >"a\000b"< >097.000.098< ->%#v.2x< >"a\000b"< >0x61.00.0x62< ->%#*v.8b< >["][", "a\000b"]< >0b01100001][00000000][0b01100010< ->%#*v.4o< >["][", "a\000b"]< >0141][0000][0142< ->%#*v.3i< >["][", "a\000b"]< >097][000][098< ->%#*v.2x< >["][", "a\000b"]< >0x61][00][0x62< ->%#v.8b< >"a\x{1e01}\000b\x{1e03}"< >0b01100001.0b1111000000001.00000000.0b01100010.0b1111000000011< ->%#v.4o< >"a\x{1e01}\000b\x{1e03}"< >0141.017001.0000.0142.017003< ->%#v.3i< >"a\x{1e01}\000b\x{1e03}"< >097.7681.000.098.7683< ->%#v.2x< >"a\x{1e01}\000b\x{1e03}"< >0x61.0x1e01.00.0x62.0x1e03< +>%#v.8b< >"\141\000\142"< >0b01100001.00000000.0b01100010< >perl #39530< +>%#v.4o< >"\141\000\142"< >0141.0000.0142< >perl #39530< +>%#v.3i< >"\141\000\142"< >097.000.098< >perl #39530< +>%#v.2x< >"\141\000\142"< >0x61.00.0x62< >perl #39530< +>%#v.2X< >"\141\000\142"< >0X61.00.0X62< >perl #39530< +>%#v.8b< >"\141\017\142"< >0b01100001.0b00001111.0b01100010< >perl #39530< +>%#v.4o< >"\141\017\142"< >0141.0017.0142< >perl #39530< +>%#v.3i< >"\141\017\142"< >097.015.098< >perl #39530< +>%#v.2x< >"\141\017\142"< >0x61.0x0f.0x62< >perl #39530< +>%#v.2X< >"\141\017\142"< >0X61.0X0F.0X62< >perl #39530< +>%#*v.8b< >["][", "\141\000\142"]< >0b01100001][00000000][0b01100010< >perl #39530< +>%#*v.4o< >["][", "\141\000\142"]< >0141][0000][0142< >perl #39530< +>%#*v.3i< >["][", "\141\000\142"]< >097][000][098< >perl #39530< +>%#*v.2x< >["][", "\141\000\142"]< >0x61][00][0x62< >perl #39530< +>%#*v.2X< >["][", "\141\000\142"]< >0X61][00][0X62< >perl #39530< +>%#*v.8b< >["][", "\141\017\142"]< >0b01100001][0b00001111][0b01100010< >perl #39530< +>%#*v.4o< >["][", "\141\017\142"]< >0141][0017][0142< >perl #39530< +>%#*v.3i< >["][", "\141\017\142"]< >097][015][098< >perl #39530< +>%#*v.2x< >["][", "\141\017\142"]< >0x61][0x0f][0x62< >perl #39530< +>%#*v.2X< >["][", "\141\017\142"]< >0X61][0X0F][0X62< >perl #39530< +>%#v.8b< >"\141\x{1e01}\000\142\x{1e03}"< >0b01100001.0b1111000000001.00000000.0b01100010.0b1111000000011< >perl #39530< +>%#v.4o< >"\141\x{1e01}\000\142\x{1e03}"< >0141.017001.0000.0142.017003< >perl #39530< +>%#v.3i< >"\141\x{1e01}\000\142\x{1e03}"< >097.7681.000.098.7683< >perl #39530< +>%#v.2x< >"\141\x{1e01}\000\142\x{1e03}"< >0x61.0x1e01.00.0x62.0x1e03< >perl #39530< +>%#v.2X< >"\141\x{1e01}\000\142\x{1e03}"< >0X61.0X1E01.00.0X62.0X1E03< >perl #39530< +>%#v.8b< >"\141\x{1e01}\017\142\x{1e03}"< >0b01100001.0b1111000000001.0b00001111.0b01100010.0b1111000000011< >perl #39530< +>%#v.4o< >"\141\x{1e01}\017\142\x{1e03}"< >0141.017001.0017.0142.017003< >perl #39530< +>%#v.3i< >"\141\x{1e01}\017\142\x{1e03}"< >097.7681.015.098.7683< >perl #39530< +>%#v.2x< >"\141\x{1e01}\017\142\x{1e03}"< >0x61.0x1e01.0x0f.0x62.0x1e03< >perl #39530< +>%#v.2X< >"\141\x{1e01}\017\142\x{1e03}"< >0X61.0X1E01.0X0F.0X62.0X1E03< >perl #39530< >%V-%s< >["Hello"]< >%V-Hello INVALID< >%K %d %d< >[13, 29]< >%K 13 29 INVALID< >%*.*K %d< >[13, 29, 76]< >%*.*K 13 INVALID<