]>
Commit | Line | Data |
---|---|---|
aae1a9d1 AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.3.014 | |
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.3.014 | |
11 | Problem: When using Chinese or Taiwanese the default for 'helplang' is | |
12 | wrong. (Simon Liang) | |
13 | Solution: Use the part of the locale name after "zh_". | |
14 | Files: src/option.c | |
15 | ||
16 | ||
17 | *** ../vim-6.3.013/src/option.c Wed Jun 9 14:56:26 2004 | |
18 | --- src/option.c Tue Jul 20 16:27:03 2004 | |
19 | *************** | |
20 | *** 3174,3180 **** | |
21 | --- 3174,3188 ---- | |
22 | if (p_hlg == NULL) | |
23 | p_hlg = empty_option; | |
24 | else | |
25 | + { | |
26 | + /* zh_CN becomes "cn", zh_TW becomes "tw". */ | |
27 | + if (STRNICMP(p_hlg, "zh_", 3) == 0 && STRLEN(p_hlg) >= 5) | |
28 | + { | |
29 | + p_hlg[0] = TOLOWER_ASC(p_hlg[3]); | |
30 | + p_hlg[1] = TOLOWER_ASC(p_hlg[4]); | |
31 | + } | |
32 | p_hlg[2] = NUL; | |
33 | + } | |
34 | options[idx].flags |= P_ALLOCED; | |
35 | } | |
36 | } | |
37 | *** ../vim-6.3.013/src/version.c Fri Jul 9 22:21:01 2004 | |
38 | --- src/version.c Tue Jul 20 17:11:50 2004 | |
39 | *************** | |
40 | *** 643,644 **** | |
41 | --- 643,646 ---- | |
42 | { /* Add new patch number below this line */ | |
43 | + /**/ | |
44 | + 14, | |
45 | /**/ | |
46 | ||
47 | -- | |
48 | What a wonderfully exciting cough! Do you mind if I join you? | |
49 | -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy" | |
50 | ||
51 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
52 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
53 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
54 | \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html /// |