Karsten Hopp e430cd
To: vim_dev@googlegroups.com
Karsten Hopp e430cd
Subject: Patch 7.4.077
Karsten Hopp e430cd
Fcc: outbox
Karsten Hopp e430cd
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp e430cd
Mime-Version: 1.0
Karsten Hopp e430cd
Content-Type: text/plain; charset=UTF-8
Karsten Hopp e430cd
Content-Transfer-Encoding: 8bit
Karsten Hopp e430cd
------------
Karsten Hopp e430cd
Karsten Hopp e430cd
Patch 7.4.077
Karsten Hopp e430cd
Problem:    DOS installer creates shortcut without a path, resulting in the
Karsten Hopp e430cd
            current directory to be C:\Windows\system32.
Karsten Hopp e430cd
Solution:   Use environment variables.
Karsten Hopp e430cd
Files:      src/dosinst.c
Karsten Hopp e430cd
    
Karsten Hopp e430cd
Karsten Hopp e430cd
*** ../vim-7.4.076/src/dosinst.c	2013-05-06 04:06:04.000000000 +0200
Karsten Hopp e430cd
--- src/dosinst.c	2013-11-06 18:18:47.000000000 +0100
Karsten Hopp e430cd
***************
Karsten Hopp e430cd
*** 1773,1781 ****
Karsten Hopp e430cd
  
Karsten Hopp e430cd
  /*
Karsten Hopp e430cd
   * We used to use "homedir" as the working directory, but that is a bad choice
Karsten Hopp e430cd
!  * on multi-user systems.  Not specifying a directory appears to work best.
Karsten Hopp e430cd
   */
Karsten Hopp e430cd
! #define WORKDIR ""
Karsten Hopp e430cd
  
Karsten Hopp e430cd
  /*
Karsten Hopp e430cd
   * Create shortcut(s) in the Start Menu\Programs\Vim folder.
Karsten Hopp e430cd
--- 1773,1783 ----
Karsten Hopp e430cd
  
Karsten Hopp e430cd
  /*
Karsten Hopp e430cd
   * We used to use "homedir" as the working directory, but that is a bad choice
Karsten Hopp e430cd
!  * on multi-user systems.  However, not specifying a directory results in the
Karsten Hopp e430cd
!  * current directory to be c:\Windows\system32 on Windows 7. Use environment
Karsten Hopp e430cd
!  * variables instead.
Karsten Hopp e430cd
   */
Karsten Hopp e430cd
! #define WORKDIR "%HOMEDRIVE%%HOMEPATH%"
Karsten Hopp e430cd
  
Karsten Hopp e430cd
  /*
Karsten Hopp e430cd
   * Create shortcut(s) in the Start Menu\Programs\Vim folder.
Karsten Hopp e430cd
*** ../vim-7.4.076/src/version.c	2013-11-07 04:46:43.000000000 +0100
Karsten Hopp e430cd
--- src/version.c	2013-11-07 04:47:42.000000000 +0100
Karsten Hopp e430cd
***************
Karsten Hopp e430cd
*** 740,741 ****
Karsten Hopp e430cd
--- 740,743 ----
Karsten Hopp e430cd
  {   /* Add new patch number below this line */
Karsten Hopp e430cd
+ /**/
Karsten Hopp e430cd
+     77,
Karsten Hopp e430cd
  /**/
Karsten Hopp e430cd
Karsten Hopp e430cd
-- 
Karsten Hopp e430cd
JOHN CLEESE PLAYED: SECOND SOLDIER WITH A KEEN INTEREST IN BIRDS, LARGE MAN
Karsten Hopp e430cd
                    WITH DEAD BODY, BLACK KNIGHT, MR NEWT (A VILLAGE
Karsten Hopp e430cd
                    BLACKSMITH INTERESTED IN BURNING WITCHES), A QUITE
Karsten Hopp e430cd
                    EXTRAORDINARILY RUDE FRENCHMAN, TIM THE WIZARD, SIR
Karsten Hopp e430cd
                    LAUNCELOT
Karsten Hopp e430cd
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
Karsten Hopp e430cd
Karsten Hopp e430cd
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp e430cd
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp e430cd
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp e430cd
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///