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 * working as if the precision
   is omitted

and changes of pod and tests, too.

P.S. As I understand it correctly, printf("%#.0o",0) should print
a single 0, though currently it prints a null string.
{ cf. printf("%.0o",0) eq '' is correct, that has no #. }
This patch has not coped with it yet.

cf. google code search for "%#.0o":
    http://www.google.com/codesearch?hl=en&lr=&q=%22%25%23.0o%22

Regards,
SADAHIRO Tomoyuki

Attachment: sprintf.patch.gz
Description: Binary data

Reply via email to