Paul Eggert
a860ca32b0
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.
2007-11-03 10:00:26 +01:00
..
2007-10-07 19:44:38 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-10-08 10:47:40 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-09-07 10:45:22 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-10-07 16:56:46 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2005-06-02 05:17:24 +00:00
2007-09-30 09:58:24 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-22 16:59:40 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-10-27 09:42:27 +02:00
2007-08-22 16:59:40 +02:00
2007-10-09 09:39:13 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-08-11 08:32:50 +02:00
2007-08-30 17:12:56 +02:00
2007-08-29 00:14:23 +02:00
2007-07-23 14:35:58 +02:00
2007-10-25 08:59:30 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2005-07-18 07:52:37 +00:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-09-29 07:53:49 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-08-20 17:03:45 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2003-07-06 06:08:40 +00:00
2007-08-30 17:12:56 +02:00
2007-08-23 14:00:35 +02:00
2007-08-30 17:12:56 +02:00
2007-09-05 10:58:45 +02:00
2007-10-09 09:35:30 +02:00
2007-08-22 16:59:40 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-10-07 19:44:38 +02:00
2007-10-05 13:26:46 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-24 14:51:55 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-11 08:32:50 +02:00
2007-08-30 17:12:56 +02:00
2007-10-21 14:01:27 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-28 11:23:27 +02:00
2007-10-08 10:47:40 +02:00
2007-07-23 14:35:58 +02:00
2007-08-20 17:03:45 +02:00
2007-07-23 14:35:58 +02:00
2007-03-29 21:37:06 +02:00
2007-11-03 10:00:26 +01:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-10-07 18:41:49 +02:00
2007-07-23 14:35:58 +02:00
2007-08-28 11:23:27 +02:00
2007-07-23 14:35:58 +02:00
2007-08-29 00:14:23 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-10-28 18:16:54 +01:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-21 09:01:07 +02:00
2007-10-21 14:01:28 +02:00
2007-08-30 17:12:56 +02:00
2007-10-07 18:16:07 +02:00
2007-08-29 00:14:23 +02:00
2007-07-10 19:00:00 +02:00
2007-07-10 19:00:00 +02:00
2007-07-23 14:35:58 +02:00
2007-07-10 19:00:00 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-07-23 14:35:58 +02:00
2007-08-30 17:12:56 +02:00
2007-08-30 17:12:56 +02:00