|
Karsten Hopp |
00e0e8 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
00e0e8 |
Subject: Patch 7.1.319
|
|
Karsten Hopp |
00e0e8 |
Fcc: outbox
|
|
Karsten Hopp |
00e0e8 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
00e0e8 |
Mime-Version: 1.0
|
|
Karsten Hopp |
00e0e8 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
00e0e8 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
00e0e8 |
------------
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
Patch 7.1.319
|
|
Karsten Hopp |
00e0e8 |
Problem: When a register has an illegal utf-8 sequence, pasting it on the
|
|
Karsten Hopp |
00e0e8 |
command line causes an illegal memory access.
|
|
Karsten Hopp |
00e0e8 |
Solution: Use mb_cptr2char_adv(). (Dominique Pelle)
|
|
Karsten Hopp |
00e0e8 |
Files: src/ex_getln.c
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
*** ../vim-7.1.318/src/ex_getln.c Thu May 29 15:33:13 2008
|
|
Karsten Hopp |
00e0e8 |
--- src/ex_getln.c Mon Jun 9 20:10:51 2008
|
|
Karsten Hopp |
00e0e8 |
***************
|
|
Karsten Hopp |
00e0e8 |
*** 3032,3041 ****
|
|
Karsten Hopp |
00e0e8 |
++s;
|
|
Karsten Hopp |
00e0e8 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
00e0e8 |
if (has_mbyte)
|
|
Karsten Hopp |
00e0e8 |
! {
|
|
Karsten Hopp |
00e0e8 |
! c = mb_ptr2char(s);
|
|
Karsten Hopp |
00e0e8 |
! s += mb_char2len(c);
|
|
Karsten Hopp |
00e0e8 |
! }
|
|
Karsten Hopp |
00e0e8 |
else
|
|
Karsten Hopp |
00e0e8 |
#endif
|
|
Karsten Hopp |
00e0e8 |
c = *s++;
|
|
Karsten Hopp |
00e0e8 |
--- 3033,3039 ----
|
|
Karsten Hopp |
00e0e8 |
++s;
|
|
Karsten Hopp |
00e0e8 |
#ifdef FEAT_MBYTE
|
|
Karsten Hopp |
00e0e8 |
if (has_mbyte)
|
|
Karsten Hopp |
00e0e8 |
! c = mb_cptr2char_adv(&s);
|
|
Karsten Hopp |
00e0e8 |
else
|
|
Karsten Hopp |
00e0e8 |
#endif
|
|
Karsten Hopp |
00e0e8 |
c = *s++;
|
|
Karsten Hopp |
00e0e8 |
*** ../vim-7.1.318/src/version.c Fri Jun 20 11:58:27 2008
|
|
Karsten Hopp |
00e0e8 |
--- src/version.c Fri Jun 20 12:53:16 2008
|
|
Karsten Hopp |
00e0e8 |
***************
|
|
Karsten Hopp |
00e0e8 |
*** 668,669 ****
|
|
Karsten Hopp |
00e0e8 |
--- 673,676 ----
|
|
Karsten Hopp |
00e0e8 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
00e0e8 |
+ /**/
|
|
Karsten Hopp |
00e0e8 |
+ 319,
|
|
Karsten Hopp |
00e0e8 |
/**/
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
--
|
|
Karsten Hopp |
00e0e8 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
00e0e8 |
46. Your wife makes a new rule: "The computer cannot come to bed."
|
|
Karsten Hopp |
00e0e8 |
|
|
Karsten Hopp |
00e0e8 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
00e0e8 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
00e0e8 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
00e0e8 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|