diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2021-03-23 13:50:02 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2021-03-23 13:50:02 +0100 |
commit | c2bd0b680667c7ec4956552f75d9ff7d040ac941 (patch) | |
tree | 8d117fedfebe03f6f97071ebc522d4ac03f08c47 /coreutils/printf.c | |
parent | 14ed4ec8a416a60a214bf40f9185aa227ac44598 (diff) | |
download | busybox-w32-c2bd0b680667c7ec4956552f75d9ff7d040ac941.tar.gz busybox-w32-c2bd0b680667c7ec4956552f75d9ff7d040ac941.tar.bz2 busybox-w32-c2bd0b680667c7ec4956552f75d9ff7d040ac941.zip |
timeout,top,watch,ping: parse NN.N fractional duration in locales with other separators
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'coreutils/printf.c')
-rw-r--r-- | coreutils/printf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/coreutils/printf.c b/coreutils/printf.c index a20fc3301..dd94c8ade 100644 --- a/coreutils/printf.c +++ b/coreutils/printf.c | |||
@@ -122,6 +122,7 @@ static void FAST_FUNC conv_strtod(const char *arg, void *result) | |||
122 | char *end; | 122 | char *end; |
123 | /* Well, this one allows leading whitespace... so what? */ | 123 | /* Well, this one allows leading whitespace... so what? */ |
124 | /* What I like much less is that "-" accepted too! :( */ | 124 | /* What I like much less is that "-" accepted too! :( */ |
125 | //TODO: needs setlocale(LC_NUMERIC, "C")? | ||
125 | *(double*)result = strtod(arg, &end); | 126 | *(double*)result = strtod(arg, &end); |
126 | if (end[0]) { | 127 | if (end[0]) { |
127 | errno = ERANGE; | 128 | errno = ERANGE; |