b78b93f
To: vim-dev@vim.org
b78b93f
Subject: Patch 7.2.326
b78b93f
Fcc: outbox
b78b93f
From: Bram Moolenaar <Bram@moolenaar.net>
b78b93f
Mime-Version: 1.0
b78b93f
Content-Type: text/plain; charset=UTF-8
b78b93f
Content-Transfer-Encoding: 8bit
b78b93f
------------
b78b93f
b78b93f
Patch 7.2.326
b78b93f
Problem:    Win32: $HOME doesn't work when %HOMEPATH% is not defined.
b78b93f
Solution:   Use "\" for %HOMEPATH% when it is not defined.
b78b93f
Files:	    src/misc1.c
b78b93f
b78b93f
b78b93f
*** ../vim-7.2.325/src/misc1.c	2009-12-02 17:47:46.000000000 +0100
b78b93f
--- src/misc1.c	2010-01-05 19:53:23.000000000 +0100
b78b93f
***************
b78b93f
*** 3470,3476 ****
b78b93f
  
b78b93f
  	homedrive = mch_getenv((char_u *)"HOMEDRIVE");
b78b93f
  	homepath = mch_getenv((char_u *)"HOMEPATH");
b78b93f
! 	if (homedrive != NULL && homepath != NULL
b78b93f
  			   && STRLEN(homedrive) + STRLEN(homepath) < MAXPATHL)
b78b93f
  	{
b78b93f
  	    sprintf((char *)NameBuff, "%s%s", homedrive, homepath);
b78b93f
--- 3470,3478 ----
b78b93f
  
b78b93f
  	homedrive = mch_getenv((char_u *)"HOMEDRIVE");
b78b93f
  	homepath = mch_getenv((char_u *)"HOMEPATH");
b78b93f
! 	if (homepath == NULL || *homepath == NUL)
b78b93f
! 	    homepath = "\\";
b78b93f
! 	if (homedrive != NULL
b78b93f
  			   && STRLEN(homedrive) + STRLEN(homepath) < MAXPATHL)
b78b93f
  	{
b78b93f
  	    sprintf((char *)NameBuff, "%s%s", homedrive, homepath);
b78b93f
*** ../vim-7.2.325/src/version.c	2009-12-31 14:52:48.000000000 +0100
b78b93f
--- src/version.c	2010-01-06 17:39:23.000000000 +0100
b78b93f
***************
b78b93f
*** 683,684 ****
b78b93f
--- 683,686 ----
b78b93f
  {   /* Add new patch number below this line */
b78b93f
+ /**/
b78b93f
+     326,
b78b93f
  /**/
b78b93f
b78b93f
-- 
b78b93f
From "know your smileys":
b78b93f
 :q	vi user saying, "How do I get out of this damn emacs editor?"
b78b93f
b78b93f
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
b78b93f
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
b78b93f
\\\        download, build and distribute -- http://www.A-A-P.org        ///
b78b93f
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///