[PATCH] Re: sprintf 64 test

2006-10-15 Thread SADAHIRO Tomoyuki
Hi, here a patch against [EMAIL PROTECTED], named sprintf.patch.gz, is attached. This patch includes 3 code changes: 1. to nullify 0 flag in integer conversions when precision is given 2. to ignore space after a plus sign as a sign for a nonnegative number 3. to make a negative precision through

Re: sprintf 64 test

2006-10-14 Thread SADAHIRO Tomoyuki
On Sun, 15 Oct 2006 00:38:08 +0200, Leopold Toetsch wrote > Folks, > > Either perl 5 or libc is wrong (or my testcase is bogus, or the standard ...): > > $ perl -e'printf("!%03.2d!\n", 1)' > !001! > > $ cc -Wall sprintf.c -o sprintf && ./sprintf '%03.2d' 1 # [1] > ! 01! > > Parrot is cu