This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11344] Precision in printf family of routines
- From: "drepper at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 5 Apr 2010 20:06:41 -0000
- Subject: [Bug libc/11344] Precision in printf family of routines
- References: <20100303134731.11344.lucien@haijen.be>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From drepper at redhat dot com 2010-04-05 20:06 -------
The code works as expected. If you refer to the third format ill-behaving, this
is because there is a typo. You missed the %. If you add it the lines are
format=%10.0f ; size is 10 ; result is " 3"
and
parse_printf_format() on %10.0f : number of arguments is 1
respectively.
The format using a negative precision in the format string is invalid. Any
reference to a negative precision only refers to the case when the precision
value comes from a separate parameter when using * as the precision.
That means there is no bug at all.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=11344
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.