diff options
author | Jim Meyering <meyering@redhat.com> | 2008-09-25 20:01:24 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2008-09-26 23:31:30 +0200 |
commit | e13188e7ef7bbd609c1586332a335b4194b881aa (patch) | |
tree | a4d7b7f8bbcd4fee73be6d61bfa7710fe0af9380 /.vg-suppressions | |
parent | 2a4dcb627ea6310c2be0e8f570b470754bd1fc7e (diff) | |
download | coreutils-e13188e7ef7bbd609c1586332a335b4194b881aa.tar.xz |
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.
Diffstat (limited to '.vg-suppressions')
0 files changed, 0 insertions, 0 deletions