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 /miscutils | |
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 'miscutils')
-rw-r--r-- | miscutils/dc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/miscutils/dc.c b/miscutils/dc.c index e94dc39e0..42baa67ad 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c | |||
@@ -229,6 +229,7 @@ static void stack_machine(const char *argument) | |||
229 | const struct op *o; | 229 | const struct op *o; |
230 | 230 | ||
231 | next: | 231 | next: |
232 | //TODO: needs setlocale(LC_NUMERIC, "C")? | ||
232 | number = strtod(argument, &end); | 233 | number = strtod(argument, &end); |
233 | if (end != argument) { | 234 | if (end != argument) { |
234 | argument = end; | 235 | argument = end; |