summaryrefslogtreecommitdiff
path: root/gl/modules/cl-strtold
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2019-01-26 16:37:01 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-01-26 22:41:09 -0800
commit3fe8bc09be53d9160073abf09d8ec0fa39740fa6 (patch)
treeb148bc2963d034d5ebc8ebe93e613ffe72bc992f /gl/modules/cl-strtold
parent3cd48057c70f7e733e6b39e0ab3bb43c4e2d1c13 (diff)
downloadcoreutils-3fe8bc09be53d9160073abf09d8ec0fa39740fa6.tar.gz
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.
Diffstat (limited to 'gl/modules/cl-strtold')
-rw-r--r--gl/modules/cl-strtold23
1 files changed, 23 insertions, 0 deletions
diff --git a/gl/modules/cl-strtold b/gl/modules/cl-strtold
new file mode 100644
index 000000000..61cc43820
--- /dev/null
+++ b/gl/modules/cl-strtold
@@ -0,0 +1,23 @@
+Description:
+Convert string to long double in current or C locale.
+
+Files:
+lib/cl-strtold.c
+
+Depends-on:
+c-strtold
+cl-strtod
+
+configure.ac:
+
+Makefile.am:
+lib_SOURCES += cl-strtold.c
+
+Include:
+"cl-strtod.h"
+
+License:
+GPL
+
+Maintainer:
+all