From 8c8de839325eda0bed68917d18179d2003b344d1 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 24 Jun 2008 22:58:06 +0000 Subject: updated for version 7.2a --- src/main.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 2a02615f4..31c11c784 100644 --- a/src/main.c +++ b/src/main.c @@ -18,10 +18,6 @@ # include /* special MS-DOS swapping library */ #endif -#ifdef HAVE_FCNTL_H -# include -#endif - #ifdef __CYGWIN__ # ifndef WIN32 # include /* for cygwin_conv_to_posix_path() */ @@ -1368,6 +1364,12 @@ get_number_arg(p, idx, def) init_locale() { setlocale(LC_ALL, ""); + +# if defined(FEAT_FLOAT) && defined(LC_NUMERIC) + /* Make sure strtod() uses a decimal point, not a comma. */ + setlocale(LC_NUMERIC, "C"); +# endif + # ifdef WIN32 /* Apparently MS-Windows printf() may cause a crash when we give it 8-bit * text while it's expecting text in the current locale. This call avoids -- cgit v1.2.1