mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.3.777
Problem: When building with Gnome locale gets reset. Solution: Set locale after gnome_program_init(). (Christian Brabandt)
This commit is contained in:
parent
9d182dd0a6
commit
3be71ce28d
@ -3130,8 +3130,16 @@ gui_mch_init(void)
|
|||||||
* exits on failure, but that's a non-issue because we already called
|
* exits on failure, but that's a non-issue because we already called
|
||||||
* gtk_init_check() in gui_mch_init_check(). */
|
* gtk_init_check() in gui_mch_init_check(). */
|
||||||
if (using_gnome)
|
if (using_gnome)
|
||||||
|
{
|
||||||
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)
|
||||||
|
/* Make sure strtod() uses a decimal point, not a comma. Gnome init
|
||||||
|
* may change it. */
|
||||||
|
if (setlocale(LC_NUMERIC, NULL) != (char *) "C")
|
||||||
|
setlocale(LC_NUMERIC, "C");
|
||||||
|
# endif
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
vim_free(gui_argv);
|
vim_free(gui_argv);
|
||||||
gui_argv = NULL;
|
gui_argv = NULL;
|
||||||
|
@ -725,6 +725,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 */
|
||||||
|
/**/
|
||||||
|
777,
|
||||||
/**/
|
/**/
|
||||||
776,
|
776,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user