On Sun, Jan 30, 2011 at 10:21 PM, Father Chrysostomos via RT <perlbug-followup@perl.org> wrote: > I’m sure your patch is very nice, but I can’t see it. :-) Oh argh. Here it is. It's based on blead but works with perl 5.13.9 too. Ambrus diff --git a/t/op/sprintf.t b/t/op/sprintf.t index 54f3c2b..75f5177 100644 --- a/t/op/sprintf.t +++ b/t/op/sprintf.t @@ -379,6 +379,8 @@ __END__ >%f< >0< >0.000000< >%.0f< >[]< >0 MISSING< > %.0f< >[]< > 0 MISSING< +>%.2f< >[]< >0.00 MISSING< +>%.2fC< >[]< >0.00C MISSING< >%.0f< >0< >0< >%.0f< >2**38< >274877906944< >Should have exact int'l rep'n< >%.0f< >0.1< >0< @@ -395,6 +397,8 @@ __END__ >%#g< >12345.6789< >12345.7< >%.0g< >[]< >0 MISSING< > %.0g< >[]< > 0 MISSING< +>%.2g< >[]< >0 MISSING< +>%.2gC< >[]< >0C MISSING< >%.0g< >-0.0< >-0< >C99 standard mandates minus sign but C89 does not skip: MSWin32 VMS hpux:10.20 openbsd netbsd:1.5 irix darwin< >%.0g< >12345.6789< >1e+04< >%#.0g< >12345.6789< >1.e+04<Thread Next