]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.777 v7.3.777
authorBram Moolenaar <Bram@vim.org>
Wed, 23 Jan 2013 15:00:11 +0000 (16:00 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 23 Jan 2013 15:00:11 +0000 (16:00 +0100)
Problem:    When building with Gnome locale gets reset.
Solution:   Set locale after gnome_program_init(). (Christian Brabandt)

src/gui_gtk_x11.c
src/version.c

index d70f418603e98490e6b8fab506311f9ed13b8d96..a8cad32e19ec783bf3ae9516ffc8b2e3eea06c74 100644 (file)
@@ -3130,8 +3130,16 @@ gui_mch_init(void)
      * exits on failure, but that's a non-issue because we already called
      * gtk_init_check() in gui_mch_init_check(). */
     if (using_gnome)
+    {
        gnome_program_init(VIMPACKAGE, VIM_VERSION_SHORT,
                           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
     vim_free(gui_argv);
     gui_argv = NULL;
index 03a483314608cb53e2bc5b83feab7662a2af0473..3e7d4639ee824a306a483b5351cb2b9d87563440 100644 (file)
@@ -725,6 +725,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    777,
 /**/
     776,
 /**/