Re: "seq .1 .1" would mistakenly generate no output on FreeBSD 6.1
From:
Paul Eggert
Subject:
Re: "seq .1 .1" would mistakenly generate no output on FreeBSD 6.1
Date:
Tue, 20 Nov 2007 09:36:00 -0800
User-agent:
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)
Jim Meyering <address@hidden> writes:
> It seems to have exposed a problem in gnulib's vasnprintf.c:
I think this is because the revised (core-dumping) 'seq' is calling
vasnprintf with the equivalent of printf ("%.1Lf", 0.8L), whereas due
to the strange compiler settings on FreeBSD the original
(non-core-dumping) 'seq' called vasnprintf with the equivalent of
printf ("%.1Lf", (long double) (double) 0.8L).
I guess that the bug lies in the printing of a long double value that
is not exactly representable as a double.