4
From: Bram Moolenaar <Bram@moolenaar.net>
6
Content-Type: text/plain; charset=ISO-8859-1
7
Content-Transfer-Encoding: 8bit
11
Problem: When using Chinese or Taiwanese the default for 'helplang' is
13
Solution: Use the part of the locale name after "zh_".
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
26
+ /* zh_CN becomes "cn", zh_TW becomes "tw". */
27
+ if (STRNICMP(p_hlg, "zh_", 3) == 0 && STRLEN(p_hlg) >= 5)
29
+ p_hlg[0] = TOLOWER_ASC(p_hlg[3]);
30
+ p_hlg[1] = TOLOWER_ASC(p_hlg[4]);
34
options[idx].flags |= P_ALLOCED;
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
42
{ /* Add new patch number below this line */
48
What a wonderfully exciting cough! Do you mind if I join you?
49
-- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
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 ///