Mercurial > vim
comparison src/gui_gtk_x11.c @ 4045:9a1a4c486e6b v7.3.777
updated for version 7.3.777
Problem: When building with Gnome locale gets reset.
Solution: Set locale after gnome_program_init(). (Christian Brabandt)
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 23 Jan 2013 16:00:11 +0100 |
parents | 7bafe52b6245 |
children | 36fd800b8c6c |
comparison
equal
deleted
inserted
replaced
4044:f3f274a75875 | 4045:9a1a4c486e6b |
---|---|
3128 #ifdef FEAT_GUI_GNOME | 3128 #ifdef FEAT_GUI_GNOME |
3129 /* Initialize the GNOME libraries. gnome_program_init()/gnome_init() | 3129 /* Initialize the GNOME libraries. gnome_program_init()/gnome_init() |
3130 * exits on failure, but that's a non-issue because we already called | 3130 * exits on failure, but that's a non-issue because we already called |
3131 * gtk_init_check() in gui_mch_init_check(). */ | 3131 * gtk_init_check() in gui_mch_init_check(). */ |
3132 if (using_gnome) | 3132 if (using_gnome) |
3133 { | |
3133 gnome_program_init(VIMPACKAGE, VIM_VERSION_SHORT, | 3134 gnome_program_init(VIMPACKAGE, VIM_VERSION_SHORT, |
3134 LIBGNOMEUI_MODULE, gui_argc, gui_argv, NULL); | 3135 LIBGNOMEUI_MODULE, gui_argc, gui_argv, NULL); |
3136 # if defined(FEAT_FLOAT) && defined(LC_NUMERIC) | |
3137 /* Make sure strtod() uses a decimal point, not a comma. Gnome init | |
3138 * may change it. */ | |
3139 if (setlocale(LC_NUMERIC, NULL) != (char *) "C") | |
3140 setlocale(LC_NUMERIC, "C"); | |
3141 # endif | |
3142 } | |
3135 #endif | 3143 #endif |
3136 vim_free(gui_argv); | 3144 vim_free(gui_argv); |
3137 gui_argv = NULL; | 3145 gui_argv = NULL; |
3138 | 3146 |
3139 #if GLIB_CHECK_VERSION(2,1,3) | 3147 #if GLIB_CHECK_VERSION(2,1,3) |