]> git.pld-linux.org Git - packages/vim.git/blob - 7.2.422
- new
[packages/vim.git] / 7.2.422
1 To: vim-dev@vim.org
2 Subject: Patch 7.2.422
3 Fcc: outbox
4 From: Bram Moolenaar <Bram@moolenaar.net>
5 Mime-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8 ------------
9
10 Patch 7.2.422
11 Problem:    May get E763 when using spell dictionaries.
12 Solution:   Avoid utf-8 case folded character to be truncated to 8 bits and
13             differ from latin1. (Dominique Pelle)
14 Files:      src/spell.c
15
16
17 *** ../vim-7.2.421/src/spell.c  2010-01-19 13:06:42.000000000 +0100
18 --- src/spell.c 2010-05-13 17:29:28.000000000 +0200
19 ***************
20 *** 9780,9789 ****
21       {
22         for (i = 128; i < 256; ++i)
23         {
24             spelltab.st_isu[i] = utf_isupper(i);
25             spelltab.st_isw[i] = spelltab.st_isu[i] || utf_islower(i);
26 !           spelltab.st_fold[i] = utf_fold(i);
27 !           spelltab.st_upper[i] = utf_toupper(i);
28         }
29       }
30       else
31 --- 9780,9795 ----
32       {
33         for (i = 128; i < 256; ++i)
34         {
35 +           int f = utf_fold(i);
36 +           int u = utf_toupper(i);
37
38             spelltab.st_isu[i] = utf_isupper(i);
39             spelltab.st_isw[i] = spelltab.st_isu[i] || utf_islower(i);
40 !           /* The folded/upper-cased value is different between latin1 and
41 !            * utf8 for 0xb5, causing E763 for no good reason.  Use the latin1
42 !            * value for utf-8 to avoid this. */
43 !           spelltab.st_fold[i] = (f < 256) ? f : i;
44 !           spelltab.st_upper[i] = (u < 256) ? u : i;
45         }
46       }
47       else
48 *** ../vim-7.2.421/src/version.c        2010-05-13 17:35:52.000000000 +0200
49 --- src/version.c       2010-05-13 17:46:03.000000000 +0200
50 ***************
51 *** 683,684 ****
52 --- 683,686 ----
53   {   /* Add new patch number below this line */
54 + /**/
55 +     422,
56   /**/
57
58 -- 
59 Q. What happens to programmers when they die?
60 A: MS-Windows programmers are reinstalled.  C++ programmers become undefined,
61    anyone who refers to them will die as well.  Java programmers reincarnate
62    after being garbage collected.
63
64  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
65 ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
66 \\\        download, build and distribute -- http://www.A-A-P.org        ///
67  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
This page took 0.06138 seconds and 3 git commands to generate.