]> git.pld-linux.org Git - packages/vim.git/blob - 6.3.041
- patchlevel 80.
[packages/vim.git] / 6.3.041
1 To: vim-dev@vim.org
2 Subject: Patch 6.3.041 (extra)
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.041 (extra)
11 Problem:    Win32: When the path to a file has Russian characters, ":cd %:p:h"
12             doesn't work. (Valery Kondakoff)
13 Solution:   Use a wide function to change directory.
14 Files:      src/os_mswin.c
15
16
17 *** ../vim-6.3.040/src/os_mswin.c       Sun Sep  5 20:48:38 2004
18 --- src/os_mswin.c      Sun Dec  5 16:39:37 2004
19 ***************
20 *** 633,638 ****
21 --- 633,655 ----
22       if (*path == NUL)         /* drive name only */
23         return 0;
24   
25 + #ifdef FEAT_MBYTE
26 +     if (enc_codepage >= 0 && (int)GetACP() != enc_codepage)
27 +     {
28 +       WCHAR   *p = enc_to_ucs2(path, NULL);
29 +       int     n;
30
31 +       if (p != NULL)
32 +       {
33 +           n = _wchdir(p);
34 +           vim_free(p);
35 +           if (n == 0)
36 +               return 0;
37 +           /* Retry with non-wide function (for Windows 98). */
38 +       }
39 +     }
40 + #endif
41
42       return chdir(path);              /* let the normal chdir() do the rest */
43   }
44   
45 *** ../vim-6.3.040/src/version.c        Sun Dec  5 16:18:46 2004
46 --- src/version.c       Sun Dec  5 16:42:01 2004
47 ***************
48 *** 643,644 ****
49 --- 643,646 ----
50   {   /* Add new patch number below this line */
51 + /**/
52 +     41,
53   /**/
54
55 -- 
56 For large projects, Team Leaders use sophisticated project management software
57 to keep track of who's doing what.  The software collects the lies and guesses
58 of the project team and organizes them in to instantly outdated charts that
59 are too boring to look at closely.  This is called "planning".
60                                 (Scott Adams - The Dilbert principle)
61
62  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
63 ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
64 \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
65  \\\     Buy LOTR 3 and help AIDS victims -- http://ICCF.nl/lotr.html   ///
This page took 0.025332 seconds and 3 git commands to generate.