0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

updated for version 7.4.270

Problem:    Comparing pointers instead of the string they point to.
Solution:   Use strcmp(). (Ken Takata)
This commit is contained in:
Bram Moolenaar
2014-04-29 15:11:43 +02:00
parent 3d1956bcc9
commit 1ff32c5c2c
2 changed files with 10 additions and 4 deletions

View File

@@ -3142,10 +3142,14 @@ gui_mch_init(void)
gnome_program_init(VIMPACKAGE, VIM_VERSION_SHORT, gnome_program_init(VIMPACKAGE, VIM_VERSION_SHORT,
LIBGNOMEUI_MODULE, gui_argc, gui_argv, NULL); LIBGNOMEUI_MODULE, gui_argc, gui_argv, NULL);
# if defined(FEAT_FLOAT) && defined(LC_NUMERIC) # if defined(FEAT_FLOAT) && defined(LC_NUMERIC)
/* Make sure strtod() uses a decimal point, not a comma. Gnome init {
* may change it. */ char *p = setlocale(LC_NUMERIC, NULL);
if (setlocale(LC_NUMERIC, NULL) != (char *) "C")
setlocale(LC_NUMERIC, "C"); /* Make sure strtod() uses a decimal point, not a comma. Gnome
* init may change it. */
if (p == NULL || strcmp(p, "C") != 0)
setlocale(LC_NUMERIC, "C");
}
# endif # endif
} }
#endif #endif

View File

@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
270,
/**/ /**/
269, 269,
/**/ /**/