diff --git a/src/tinyexpr.cpp b/src/tinyexpr.cpp index 8413d8530..4de6453f2 100644 --- a/src/tinyexpr.cpp +++ b/src/tinyexpr.cpp @@ -251,7 +251,7 @@ static void next_token(state *s) { /* Try reading a number. */ if ((s->next[0] >= '0' && s->next[0] <= '9') || s->next[0] == '.') { - s->value = wcstod_l(s->next, const_cast(&s->next), fish_c_locale()); + s->value = fish_wcstod(s->next, const_cast(&s->next)); s->type = TOK_NUMBER; } else { /* Look for a function call. */