4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
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)
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
22 for (i = 128; i < 256; ++i)
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);
33 for (i = 128; i < 256; ++i)
35 + int f = utf_fold(i);
36 + int u = utf_toupper(i);
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;
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
53 { /* Add new patch number below this line */
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.
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 ///