*printf fix - ' flag

Eric Blake ebb9@byu.net
Wed Nov 15 20:10:00 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

POSIX requires %'d to print a decimal separated by the thousands
separator.  Fortunately for newlib, the thousands separator in the C
locale is the empty string.  I also discovered that my previous patch to
support %zu and friends was incomplete, since it didn't support %1$zu.

2006-11-14  Eric Blake  <ebb9@byu.net>

	* libc/stdio/vfprintf.c (_vfprintf_r): Support ' flag.
	(chclass): ' is a flag.  j, t, and z are modifiers.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9@byu.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFWcsg84KuGfSFAYARArs7AKCQPyAV61Bkm/vTGAccAicbhvWE+QCeIEjP
q5WVwsWKx7SFuwAPVWJbz7Q=
=1xe6
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newlib.patch5
URL: <http://sourceware.org/pipermail/newlib/attachments/20061115/9ab7b950/attachment.ksh>


More information about the Newlib mailing list