mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
updated for version 7.2a
This commit is contained in:
10
src/main.c
10
src/main.c
@@ -18,10 +18,6 @@
|
||||
# include <spawno.h> /* special MS-DOS swapping library */
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_FCNTL_H
|
||||
# include <fcntl.h>
|
||||
#endif
|
||||
|
||||
#ifdef __CYGWIN__
|
||||
# ifndef WIN32
|
||||
# include <sys/cygwin.h> /* 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
|
||||
|
Reference in New Issue
Block a user