summaryrefslogtreecommitdiff
path: root/src/os_mac_conv.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/os_mac_conv.c')
-rw-r--r--src/os_mac_conv.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os_mac_conv.c b/src/os_mac_conv.c
index 3daf74a48..fd6212464 100644
--- a/src/os_mac_conv.c
+++ b/src/os_mac_conv.c
@@ -580,6 +580,10 @@ mac_lang_init(void)
# ifdef HAVE_LOCALE_H
setlocale(LC_ALL, "");
# endif
+# if defined(FEAT_FLOAT) && defined(LC_NUMERIC)
+ // Make sure strtod() uses a decimal point, not a comma.
+ setlocale(LC_NUMERIC, "C");
+# endif
}
}
}