printf,seq,sleep,tail,timeout: accept current-locale floats
commit3fe8bc09be53d9160073abf09d8ec0fa39740fa6
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 27 Jan 2019 00:37:01 +0000 (26 16:37 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 27 Jan 2019 06:41:09 +0000 (26 22:41 -0800)
treeb148bc2963d034d5ebc8ebe93e613ffe72bc992f
parent3cd48057c70f7e733e6b39e0ab3bb43c4e2d1c13
printf,seq,sleep,tail,timeout: accept current-locale floats

These commands now accept floating-point numbers in the
current locale, as well as in the C locale.
Compatibility problem reported by Robert Elz.
* NEWS: Document this.
* bootstrap.conf (gnulib_modules): Add cl-strtod, cl-strtold.
Remove c-strtold.
* doc/coreutils.texi (Floating point, tail invocation)
(printf invocation, timeout invocation, sleep invocation)
(seq invocation): Document this.
* gl/lib/cl-strtod.c, gl/lib/cl-strtod.h, gl/lib/cl-strtold.c:
* gl/modules/cl-strtod, gl/modules/cl-strtold: New files.
* src/printf.c, src/seq.c, src/sleep.c, src/tail.c, src/timeout.c:
Include cl-strtod.h instead of c-strtod.
* src/printf.c (vstrtold):
* src/seq.c (scan_arg, print_numbers):
* src/sleep.c (main):
* src/tail.c (parse_options):
* src/timeout.c (parse_duration):
Use cl_strtold instead of c_strtold.
13 files changed:
NEWS
bootstrap.conf
doc/coreutils.texi
gl/lib/cl-strtod.c [new file with mode: 0644]
gl/lib/cl-strtod.h [new file with mode: 0644]
gl/lib/cl-strtold.c [new file with mode: 0644]
gl/modules/cl-strtod [new file with mode: 0644]
gl/modules/cl-strtold [new file with mode: 0644]
src/printf.c
src/seq.c
src/sleep.c
src/tail.c
src/timeout.c