Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 May 2007 23:01:31 -0400
From:      David Schultz <das@FreeBSD.ORG>
To:        Bruno Haible <bruno@clisp.org>
Cc:        freebsd-standards@FreeBSD.ORG
Subject:   Re: a bug in printf %f and %a
Message-ID:  <20070508030131.GB7859@VARK.MIT.EDU>
In-Reply-To: <200704060338.36210.bruno@clisp.org>
References:  <200704060338.36210.bruno@clisp.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070508030131.GB7859>