]>
Commit | Line | Data |
---|---|---|
fe53742a AG |
1 | To: vim-dev@vim.org |
2 | Subject: Patch 6.2.526 | |
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.2.526 | |
11 | Problem: When s:lang is "ja" the Japanese menus are not used. | |
12 | Solution: Add 'encoding' to the language when there is no charset. | |
13 | Files: runtime/menu.vim | |
14 | ||
15 | ||
16 | *** ../vim-6.2.525/runtime/menu.vim Mon Mar 1 16:43:34 2004 | |
17 | --- runtime/menu.vim Tue May 4 15:57:24 2004 | |
18 | *************** | |
19 | *** 2,8 **** | |
20 | " You can also use this as a start for your own set of menus. | |
21 | " | |
22 | " Maintainer: Bram Moolenaar <Bram@vim.org> | |
23 | ! " Last Change: 2004 Mar 01 | |
24 | ||
25 | " Note that ":an" (short for ":anoremenu") is often used to make a menu work | |
26 | " in all modes and avoid side effects from mappings defined by the user. | |
27 | --- 2,8 ---- | |
28 | " You can also use this as a start for your own set of menus. | |
29 | " | |
30 | " Maintainer: Bram Moolenaar <Bram@vim.org> | |
31 | ! " Last Change: 2004 May 04 | |
32 | ||
33 | " Note that ":an" (short for ":anoremenu") is often used to make a menu work | |
34 | " in all modes and avoid side effects from mappings defined by the user. | |
35 | *************** | |
36 | *** 30,35 **** | |
37 | --- 30,40 ---- | |
38 | endif | |
39 | " A language name must be at least two characters, don't accept "C" | |
40 | if strlen(s:lang) > 1 | |
41 | + " When the language does not include the charset add 'encoding' | |
42 | + if s:lang =~ '^\a\a$\|^\a\a_\a\a$' | |
43 | + let s:lang = s:lang . '.' . &enc | |
44 | + endif | |
45 | + | |
46 | " We always use a lowercase name. | |
47 | " Change "iso-8859" to "iso_8859" and "iso8859" to "iso_8859", some | |
48 | " systems appear to use this. | |
49 | *** ../vim-6.2.525/src/version.c Tue May 4 19:23:13 2004 | |
50 | --- src/version.c Tue May 4 21:12:08 2004 | |
51 | *************** | |
52 | *** 639,640 **** | |
53 | --- 642,645 ---- | |
54 | { /* Add new patch number below this line */ | |
55 | + /**/ | |
56 | + 526, | |
57 | /**/ | |
58 | ||
59 | -- | |
60 | hundred-and-one symptoms of being an internet addict: | |
61 | 107. When using your phone you forget that you don't have to use your | |
62 | keyboard. | |
63 | ||
64 | /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ | |
65 | /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ | |
66 | \\\ Project leader for A-A-P -- http://www.A-A-P.org /// | |
67 | \\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html /// |