Karsten Hopp bdc93a
To: vim_dev@googlegroups.com
Karsten Hopp bdc93a
Subject: Patch 7.4.270
Karsten Hopp bdc93a
Fcc: outbox
Karsten Hopp bdc93a
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp bdc93a
Mime-Version: 1.0
Karsten Hopp bdc93a
Content-Type: text/plain; charset=UTF-8
Karsten Hopp bdc93a
Content-Transfer-Encoding: 8bit
Karsten Hopp bdc93a
------------
Karsten Hopp bdc93a
Karsten Hopp bdc93a
Patch 7.4.270
Karsten Hopp bdc93a
Problem:    Comparing pointers instead of the string they point to.
Karsten Hopp bdc93a
Solution:   Use strcmp(). (Ken Takata)
Karsten Hopp bdc93a
Files:	    src/gui_gtk_x11.c
Karsten Hopp bdc93a
Karsten Hopp bdc93a
Karsten Hopp bdc93a
*** ../vim-7.4.269/src/gui_gtk_x11.c	2014-04-06 21:08:41.311360470 +0200
Karsten Hopp bdc93a
--- src/gui_gtk_x11.c	2014-04-29 15:02:35.931856814 +0200
Karsten Hopp bdc93a
***************
Karsten Hopp bdc93a
*** 3142,3151 ****
Karsten Hopp bdc93a
  	gnome_program_init(VIMPACKAGE, VIM_VERSION_SHORT,
Karsten Hopp bdc93a
  			   LIBGNOMEUI_MODULE, gui_argc, gui_argv, NULL);
Karsten Hopp bdc93a
  # if defined(FEAT_FLOAT) && defined(LC_NUMERIC)
Karsten Hopp bdc93a
! 	/* Make sure strtod() uses a decimal point, not a comma. Gnome init
Karsten Hopp bdc93a
! 	 * may change it. */
Karsten Hopp bdc93a
! 	if (setlocale(LC_NUMERIC, NULL) != (char *) "C")
Karsten Hopp bdc93a
! 	   setlocale(LC_NUMERIC, "C");
Karsten Hopp bdc93a
  # endif
Karsten Hopp bdc93a
      }
Karsten Hopp bdc93a
  #endif
Karsten Hopp bdc93a
--- 3142,3155 ----
Karsten Hopp bdc93a
  	gnome_program_init(VIMPACKAGE, VIM_VERSION_SHORT,
Karsten Hopp bdc93a
  			   LIBGNOMEUI_MODULE, gui_argc, gui_argv, NULL);
Karsten Hopp bdc93a
  # if defined(FEAT_FLOAT) && defined(LC_NUMERIC)
Karsten Hopp bdc93a
! 	{
Karsten Hopp bdc93a
! 	    char *p = setlocale(LC_NUMERIC, NULL);
Karsten Hopp bdc93a
! 
Karsten Hopp bdc93a
! 	    /* Make sure strtod() uses a decimal point, not a comma. Gnome
Karsten Hopp bdc93a
! 	     * init may change it. */
Karsten Hopp bdc93a
! 	    if (p == NULL || strcmp(p, "C") != 0)
Karsten Hopp bdc93a
! 	       setlocale(LC_NUMERIC, "C");
Karsten Hopp bdc93a
! 	}
Karsten Hopp bdc93a
  # endif
Karsten Hopp bdc93a
      }
Karsten Hopp bdc93a
  #endif
Karsten Hopp bdc93a
*** ../vim-7.4.269/src/version.c	2014-04-29 14:44:31.519875819 +0200
Karsten Hopp bdc93a
--- src/version.c	2014-04-29 14:59:21.799860216 +0200
Karsten Hopp bdc93a
***************
Karsten Hopp bdc93a
*** 736,737 ****
Karsten Hopp bdc93a
--- 736,739 ----
Karsten Hopp bdc93a
  {   /* Add new patch number below this line */
Karsten Hopp bdc93a
+ /**/
Karsten Hopp bdc93a
+     270,
Karsten Hopp bdc93a
  /**/
Karsten Hopp bdc93a
Karsten Hopp bdc93a
-- 
Karsten Hopp bdc93a
From "know your smileys":
Karsten Hopp bdc93a
 :-| :-|   Deja' vu!
Karsten Hopp bdc93a
Karsten Hopp bdc93a
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp bdc93a
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp bdc93a
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp bdc93a
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///