mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 22:36:09 +00:00
os/lang: use the correct LC_NUMERIC also for OS X
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user