Re: another platform *printf bug

2007-04-11 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Bruno Haible on 4/11/2007 5:48 PM: > Can you please test this patch? Already in CVS without testing; I rely on you. > > Bruno > > 2007-04-11 Bruno Haible <[EMAIL PROTECTED]> > > * lib/vasnprintf.c (VASNPRINTF): Implement the %F

Re: unions and aliasing

2007-04-11 Thread Paul Eggert
Bruno Haible <[EMAIL PROTECTED]> writes: > In C99 6.2.6.1.(4) there is a definition of the term "object representation", > together with a guarantee that memcpy() can be used to extract it. Yes, that's correct. But that text allows you to extract the representation only into an array of unsigned

Re: another platform *printf bug

2007-04-11 Thread Bruno Haible
Eric Blake wrote: > Up till today, newlib has this bug: > > $ printf %.f 1234 > 1234 > $ printf %.F 1234 > 1F+03 > > basically, it is treating %F like %e, with rather comical results. This bug > bites cygwin 1.5.x (but not 1.7.0). And printf-posix and friends currently > do > not test for it

Re: FreeBSD 6 and printf "%a"

2007-04-11 Thread Bruno Haible
This patch from last week was broken. > 2007-04-04 Bruno Haible <[EMAIL PROTECTED]> > > * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct > rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test. 2007-04-11 Bruno Haible <[EMAIL PROTECTED]> * m

another platform *printf bug

2007-04-11 Thread Eric Blake
Up till today, newlib has this bug: $ printf %.f 1234 1234 $ printf %.F 1234 1F+03 basically, it is treating %F like %e, with rather comical results. This bug bites cygwin 1.5.x (but not 1.7.0). And printf-posix and friends currently do not test for it. -- Eric Blake

Re: stdin seekable failure

2007-04-11 Thread Paul Eggert
Eric Blake <[EMAIL PROTECTED]> writes: > Maybe the closeout module needs to be updated to worry about stdin as well > as stdout/stderr? Coreutils doesn't need that, as it doesn't have the problem. The two apps that I thought might have the problem solve it in a different way. 'head' bypasses st

stdin seekable failure [was: HEAD: inclusion order wrong for input.c]

2007-04-11 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Ralf Wildenhues on 4/10/2007 12:55 PM: Hi Ralf, > ../../m4/tests/others.at:487: (m4 -EE; cat) < in.m4 > + m4 -EE > + cat > stderr: > /tmp/build/src/.libs/lt-m4:stdin:1: Warning: dnl: extra arguments ignored: 1 > > 0 > --- - 2007-04-10 2