Karsten Hopp 4759a5
To: vim-dev@vim.org
Karsten Hopp 4759a5
Subject: Patch 7.2.276
Karsten Hopp 4759a5
Fcc: outbox
Karsten Hopp 4759a5
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 4759a5
Mime-Version: 1.0
Karsten Hopp 4759a5
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 4759a5
Content-Transfer-Encoding: 8bit
Karsten Hopp 4759a5
------------
Karsten Hopp 4759a5
Karsten Hopp 4759a5
Patch 7.2.276
Karsten Hopp 4759a5
Problem:    Crash when setting 'isprint' to a small bullet. (Raul Coronado)
Karsten Hopp 4759a5
Solution:   Check for the character to be < 256.  Also make it possible to
Karsten Hopp 4759a5
	    specify a range of multi-byte characters. (Lech Lorens)
Karsten Hopp 4759a5
Files:	    src/charset.c
Karsten Hopp 4759a5
Karsten Hopp 4759a5
Karsten Hopp 4759a5
*** ../vim-7.2.275/src/charset.c	2009-10-07 16:19:52.000000000 +0200
Karsten Hopp 4759a5
--- src/charset.c	2009-11-03 12:46:12.000000000 +0100
Karsten Hopp 4759a5
***************
Karsten Hopp 4759a5
*** 187,195 ****
Karsten Hopp 4759a5
  		if (VIM_ISDIGIT(*p))
Karsten Hopp 4759a5
  		    c2 = getdigits(&p);
Karsten Hopp 4759a5
  		else
Karsten Hopp 4759a5
  		    c2 = *p++;
Karsten Hopp 4759a5
  	    }
Karsten Hopp 4759a5
! 	    if (c <= 0 || (c2 < c && c2 != -1) || c2 >= 256
Karsten Hopp 4759a5
  						 || !(*p == NUL || *p == ','))
Karsten Hopp 4759a5
  		return FAIL;
Karsten Hopp 4759a5
  
Karsten Hopp 4759a5
--- 187,200 ----
Karsten Hopp 4759a5
  		if (VIM_ISDIGIT(*p))
Karsten Hopp 4759a5
  		    c2 = getdigits(&p);
Karsten Hopp 4759a5
  		else
Karsten Hopp 4759a5
+ #ifdef FEAT_MBYTE
Karsten Hopp 4759a5
+ 		     if (has_mbyte)
Karsten Hopp 4759a5
+ 		    c2 = mb_ptr2char_adv(&p);
Karsten Hopp 4759a5
+ 		else
Karsten Hopp 4759a5
+ #endif
Karsten Hopp 4759a5
  		    c2 = *p++;
Karsten Hopp 4759a5
  	    }
Karsten Hopp 4759a5
! 	    if (c <= 0 || c >= 256 || (c2 < c && c2 != -1) || c2 >= 256
Karsten Hopp 4759a5
  						 || !(*p == NUL || *p == ','))
Karsten Hopp 4759a5
  		return FAIL;
Karsten Hopp 4759a5
  
Karsten Hopp 4759a5
*** ../vim-7.2.275/src/version.c	2009-11-03 15:32:58.000000000 +0100
Karsten Hopp 4759a5
--- src/version.c	2009-11-03 16:03:18.000000000 +0100
Karsten Hopp 4759a5
***************
Karsten Hopp 4759a5
*** 678,679 ****
Karsten Hopp 4759a5
--- 678,681 ----
Karsten Hopp 4759a5
  {   /* Add new patch number below this line */
Karsten Hopp 4759a5
+ /**/
Karsten Hopp 4759a5
+     276,
Karsten Hopp 4759a5
  /**/
Karsten Hopp 4759a5
Karsten Hopp 4759a5
-- 
Karsten Hopp 4759a5
BRIDGEKEEPER: What is your favorite editor?
Karsten Hopp 4759a5
GAWAIN:       Emacs ...  No, Viiiiiiiiiiimmmmmmm!
Karsten Hopp 4759a5
           "Monty Python and the Holy editor wars" PYTHON (MONTY) SOFTWARE LTD
Karsten Hopp 4759a5
Karsten Hopp 4759a5
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 4759a5
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 4759a5
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp 4759a5
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///