Jim Meyering
e13188e7ef
seq -0.1 0.1 2: print final number when locale's decimal point is ","
...
* src/seq.c (print_numbers): Use strtold, not c_strtold to convert
from just-formatted-using-asprintf string back to double, since
asprintf may have used something other than "." as the decimal point.
Reported by lsof@nodata.co.uk as <http://bugzilla.redhat.com/463556 >.
Thanks to Ondřej Vašík for discovering that the bug was locale-related.
$ LC_ALL=cs_CZ.UTF-8 seq -0.1 0.1 2|grep 2.0
[Exit 1]
$ seq -0.1 0.1 2|grep 2.0
2.0
* tests/check.mk (TESTS_ENVIRONMENT): Add LOCALE_FR_UTF8, for...
* tests/misc/seq [locale-dec-pt]: New test for the above.
* NEWS (bug fix): Mention it.
2008-09-26 23:31:30 +02:00
..
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-06-12 21:03:05 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-07-11 14:03:23 +02:00
2008-08-09 16:55:45 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:27 +02:00
2008-09-10 13:20:10 +02:00
2008-06-02 14:40:26 +02:00
2008-06-08 12:11:47 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-06-01 16:55:11 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-08-14 14:37:37 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-07-15 08:30:38 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-26 23:31:30 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-06-17 08:50:41 +02:00
2008-08-14 14:37:37 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-08-14 14:37:37 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-09-10 13:20:10 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-05-17 08:27:58 +02:00
2008-09-10 13:20:10 +02:00
2008-06-08 12:11:47 +02:00
2008-06-08 12:11:47 +02:00