4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: A double-byte character with a second byte that is a backslash
12 causes problems inside a string.
13 Solution: Skip over multi-byte characters in a string properly. (Yasuhiro
18 *** ../vim-6.2.053/src/eval.c Sun Jul 27 14:26:54 2003
19 --- src/eval.c Sat Jul 26 18:35:19 2003
23 * Find the end of the string, skipping backslashed characters.
25 for (p = *arg + 1; *p && *p != '"'; ++p)
27 if (*p == '\\' && p[1] != NUL)
38 + p += (*mb_ptr2len_check)(p) - 1;
44 EMSG2(_("E114: Missing quote: %s"), *arg);
53 + /* For a multi-byte character copy the bytes after the first one. */
56 + int l = (*mb_ptr2len_check)(p);
65 *** ../vim-6.2.053/src/version.c Sun Jul 27 14:59:28 2003
66 --- src/version.c Sun Jul 27 15:00:47 2003
70 { /* Add new patch number below this line */
76 ALL: A witch! A witch!
77 WITCH: It's a fair cop.
78 ALL: Burn her! Burn her! Let's make her into a ladder.
79 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
81 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
82 /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\
83 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
84 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///