printf %05f on infinity

Eric Blake ebb9@byu.net
Tue Apr 24 20:32:00 GMT 2007


Jeff Johnston <jjohnstn <at> redhat.com> writes:

> 
> Ok, but leave out the URL reference in the comment.
> 

> 2007-04-12  Eric Blake  <ebb9 <at> byu.net>
>
> 	* libc/stdio/vfprintf.c (_VFPRINTF_F): Don't zero pad on infinity
> 	or NaN with %05f.
>  
> -			/* do this before tricky precision changes */
> +			/* do this before tricky precision changes
> +
> +			   If the output is infinite or NaN, leading
> +			   zeros are not permitted.  Otherwise, scanf
> +			   could not read what print wrote.
> +
> +			   
http://www.opengroup.org/austin/mailarchives/ag/msg10445.html
> +		       */

Done, with that change.

-- 
Eric Blake





More information about the Newlib mailing list