This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: printf %05f on infinity
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