a bug in printf %f and %a

David Schultz das at FreeBSD.ORG
Tue May 8 03:01:36 UTC 2007


On Fri, Apr 06, 2007, Bruno Haible wrote:
> Seen in FreeBSD 6.1.
> 
> printf "%010f" and printf "%010a", applied to NaN, Inf, or -Inf, pad with
> zeroes. Should pad with spaces instead.

We do exactly what the standard says, which is nonsensical. This
looks like a bug in the standard.


More information about the freebsd-standards mailing list