4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Win32: $HOME doesn't work when %HOMEPATH% is not defined.
12 Solution: Use "\" for %HOMEPATH% when it is not defined.
16 *** ../vim-7.2.325/src/misc1.c 2009-12-02 17:47:46.000000000 +0100
17 --- src/misc1.c 2010-01-05 19:53:23.000000000 +0100
21 homedrive = mch_getenv((char_u *)"HOMEDRIVE");
22 homepath = mch_getenv((char_u *)"HOMEPATH");
23 ! if (homedrive != NULL && homepath != NULL
24 && STRLEN(homedrive) + STRLEN(homepath) < MAXPATHL)
26 sprintf((char *)NameBuff, "%s%s", homedrive, homepath);
29 homedrive = mch_getenv((char_u *)"HOMEDRIVE");
30 homepath = mch_getenv((char_u *)"HOMEPATH");
31 ! if (homepath == NULL || *homepath == NUL)
33 ! if (homedrive != NULL
34 && STRLEN(homedrive) + STRLEN(homepath) < MAXPATHL)
36 sprintf((char *)NameBuff, "%s%s", homedrive, homepath);
37 *** ../vim-7.2.325/src/version.c 2009-12-31 14:52:48.000000000 +0100
38 --- src/version.c 2010-01-06 17:39:23.000000000 +0100
42 { /* Add new patch number below this line */
48 From "know your smileys":
49 :q vi user saying, "How do I get out of this damn emacs editor?"
51 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
52 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
53 \\\ download, build and distribute -- http://www.A-A-P.org ///
54 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///