diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/os/lang.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/os/lang.c b/src/nvim/os/lang.c index 900cd1f53a..108a9c6c39 100644 --- a/src/nvim/os/lang.c +++ b/src/nvim/os/lang.c @@ -54,6 +54,11 @@ void lang_init(void) CFRelease(cf_lang_region); # ifdef HAVE_LOCALE_H setlocale(LC_ALL, ""); + +# ifdef LC_NUMERIC + // Make sure strtod() uses a decimal point, not a comma. + setlocale(LC_NUMERIC, "C"); +# endif # endif } #endif |