Correct fish_wcstod and fix Linux build failure

Limit the fish_wcstod fast path to ASCII digits only, to fix the problem
observed in the discussion for a700acadfa
where LANG=de_DE.UTF-8 would cause `test` to interpret commas instead of
periods inside floating point values.
This commit is contained in:
ridiculousfish
2018-11-06 22:59:11 -08:00
parent db1500bfa4
commit bfd50863b8
2 changed files with 6 additions and 3 deletions

View File

@@ -6,6 +6,7 @@
#include <errno.h>
#include <libgen.h>
#include <limits.h>
#include <math.h>
#include <pthread.h>
#include <signal.h>
#include <stdarg.h>