Re: *printf questions

2007-04-06 Thread Larry Jones
Fred J. Tydeman writes: > > C99+TC1+TC2: 7.19.6.1 The fprintf function > Paragraph 6, discussion on the '0' flag: ... leading zeros ... > are used to pad to the field width rather than performing space > padding, except when converting an infinity or NaN. Base C99 says the same thing, it wasn't

Re: *printf questions

2007-04-05 Thread Fred J. Tydeman
On Thu, 05 Apr 2007 18:30:06 -0600, Eric Blake wrote: >However, he also raised the question as to whether "%010f" and "%010a" are >supposed to output " inf" (glibc does this) or "000inf" (FreeBSD >does this). Personally, I think that FreeBSD has a bug in this regard, C99+TC1+TC2: 7.19.

Re: *printf questions

2007-04-05 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Eric Blake on 3/14/2007 7:16 AM: Revisiting this thread with a new question, and adding bug-gnulib to cc... > > When using %a and %A, is it worth tightening the specification to require > the leading hex digit be smaller than FLT_RADIX