diff options
author | Paul Eggert <eggert@CS.UCLA.EDU> | 2007-11-03 01:10:59 -0700 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2007-11-03 10:00:26 +0100 |
commit | a860ca32b0cadfff722f7639b2158a59be7bd346 (patch) | |
tree | ca1b1691377feb8351fe71dcf18b097b82645673 /NEWS | |
parent | 3e3f8f0161645a7ca3730f1e8307ab7011b8c6f8 (diff) | |
download | coreutils-a860ca32b0cadfff722f7639b2158a59be7bd346.tar.xz |
Fix bug with "seq 10.8 0.1 10.95", plus another bug with %% in format.
* NEWS: Mention the %%-in-format bug fix.
* src/seq.c (struct layout): New type.
(long_double_format): New arg LAYOUT. Fill it in. Fix mishandling
of %% in formats.
(print_numbers): New arg LAYOUT. Don't convert LAST to output format
when deciding whether to go slightly past LAST. Instead, convert
X to output format and back. This fixes a bug reported by
Andreas Schwab in
<http://lists.gnu.org/archive/html/bug-coreutils/2007-10/msg00237.html>
where "seq 10.8 0.1 10.95" would output 11.0 on platforms where
10.95 rounds to a value that prints as 11.0 when only one digit
past the decimal point is asked for.
(main): Compute layout, for benefit of print_numbers.
* tests/misc/seq (float-3): Undo previous change, since the bug
should be fixed now.
(fmt-b): New test, for the %% bug.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -139,6 +139,9 @@ GNU coreutils NEWS -*- outline -*- seq no longer mishandles obvious cases like "seq 0 0.000001 0.000003", so workarounds like "seq 0 0.000001 0.0000031" are no longer needed. + seq would mistakenly reject some valid format strings containing %%, + and would mistakenly accept some invalid ones. e.g., %g%% and %%g, resp. + Obsolete sort usage with an invalid ordering-option character, e.g., "env _POSIX2_VERSION=199209 sort +1x" no longer makes sort free an invalid pointer [introduced in coreutils-6.5] |