4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
10 Patch 7.0.206 (after 7.0.058)
11 Problem: Some characters of the "gb18030" encoding are not handled
13 Solution: Do not use "cp936" as an alias for "gb18030" encoding. Instead
14 initialize 'encoding' to "cp936".
15 Files: src/mbyte.c, src/option.c
18 *** ../vim-7.0.205/src/mbyte.c Tue Dec 5 22:09:02 2006
19 --- src/mbyte.c Tue Feb 27 16:27:44 2007
25 - {"gb18030", IDX_CP936}, /* only 99% the same */
27 {"eucjp", IDX_EUC_JP},
28 {"unix-jis", IDX_EUC_JP},
30 *** ../vim-7.0.205/src/option.c Tue Oct 17 18:36:03 2006
31 --- src/option.c Thu Mar 1 21:02:06 2007
35 * If not, go back to the default "latin1". */
38 + if (STRCMP(p_enc, "gb18030") == 0)
40 + /* We don't support "gb18030", but "cp936" is a good substitute
41 + * for practical purposes, thus use that. It's not an alias to
42 + * still support conversion between gb18030 and utf-8. */
43 + p_enc = vim_strsave((char_u *)"cp936");
46 if (mb_init() == NULL)
48 opt_idx = findoption((char_u *)"encoding");
49 *** ../vim-7.0.205/src/version.c Tue Feb 27 23:06:44 2007
50 --- src/version.c Fri Mar 2 19:58:04 2007
54 { /* Add new patch number below this line */
60 You can tune a file system, but you can't tuna fish
63 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
64 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
65 \\\ download, build and distribute -- http://www.A-A-P.org ///
66 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///