]> git.pld-linux.org Git - packages/vim.git/blob - 6.2.054
- fix for current libselinux
[packages/vim.git] / 6.2.054
1 To: vim-dev@vim.org
2 Subject: Patch 6.2.054
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 6.2.054
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
14             Matsumoto)
15 Files:      src/eval.c
16
17
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
20 ***************
21 *** 2468,2473 ****
22 --- 2468,2474 ----
23        * Find the end of the string, skipping backslashed characters.
24        */
25       for (p = *arg + 1; *p && *p != '"'; ++p)
26 +     {
27         if (*p == '\\' && p[1] != NUL)
28         {
29             ++p;
30 ***************
31 *** 2476,2481 ****
32 --- 2477,2488 ----
33             if (*p == '<')
34                 extra += 2;
35         }
36 + #ifdef FEAT_MBYTE
37 +       if (has_mbyte)
38 +           p += (*mb_ptr2len_check)(p) - 1;
39 + #endif
40 +     }
41
42       if (*p != '"')
43       {
44         EMSG2(_("E114: Missing quote: %s"), *arg);
45 ***************
46 *** 2581,2586 ****
47 --- 2588,2604 ----
48         }
49         else
50             name[i++] = *p;
51
52 + #ifdef FEAT_MBYTE
53 +       /* For a multi-byte character copy the bytes after the first one. */
54 +       if (has_mbyte)
55 +       {
56 +           int l = (*mb_ptr2len_check)(p);
57
58 +           while (--l > 0)
59 +               name[i++] = *++p;
60 +       }
61 + #endif
62       }
63       name[i] = NUL;
64       *arg = p + 1;
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
67 ***************
68 *** 632,633 ****
69 --- 632,635 ----
70   {   /* Add new patch number below this line */
71 + /**/
72 +     54,
73   /**/
74
75 -- 
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
80
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  ///
This page took 0.048457 seconds and 3 git commands to generate.