home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 6.2.324 < prev    next >
Encoding:
Internet Message Format  |  2004-03-06  |  2.5 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.324 (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.2.324 (extra)
  11. Problem:    Win32: when "vimrun.exe" has a path with white space, such as
  12.         "Program Files", executing external commands may fail.
  13. Solution:   Put double quotes around the path to "vimrun".
  14. Files:        src/os_win32.c
  15.  
  16.  
  17. *** ../vim-6.2.323/src/os_win32.c    Sun Feb 29 14:48:02 2004
  18. --- src/os_win32.c    Sun Mar  7 16:08:19 2004
  19. ***************
  20. *** 1492,1505 ****
  21.       /* Look for 'vimrun' */
  22.       if (!gui_is_win32s())
  23.       {
  24. !     char_u vimrun_location[_MAX_PATH + 2];
  25.   
  26.       /* First try in same directory as gvim.exe */
  27.       STRCPY(vimrun_location, exe_name);
  28.       STRCPY(gettail(vimrun_location), "vimrun.exe");
  29.       if (mch_getperm(vimrun_location) >= 0)
  30.       {
  31. !         STRCPY(gettail(vimrun_location), "vimrun ");
  32.           vimrun_path = (char *)vim_strsave(vimrun_location);
  33.           s_dont_use_vimrun = FALSE;
  34.       }
  35. --- 1492,1515 ----
  36.       /* Look for 'vimrun' */
  37.       if (!gui_is_win32s())
  38.       {
  39. !     char_u vimrun_location[_MAX_PATH + 4];
  40.   
  41.       /* First try in same directory as gvim.exe */
  42.       STRCPY(vimrun_location, exe_name);
  43.       STRCPY(gettail(vimrun_location), "vimrun.exe");
  44.       if (mch_getperm(vimrun_location) >= 0)
  45.       {
  46. !         if (*skiptowhite(vimrun_location) != NUL)
  47. !         {
  48. !         /* Enclose path with white space in double quotes. */
  49. !         mch_memmove(vimrun_location + 1, vimrun_location,
  50. !                          STRLEN(vimrun_location) + 1);
  51. !         *vimrun_location = '"';
  52. !         STRCPY(gettail(vimrun_location), "vimrun\" ");
  53. !         }
  54. !         else
  55. !         STRCPY(gettail(vimrun_location), "vimrun ");
  56.           vimrun_path = (char *)vim_strsave(vimrun_location);
  57.           s_dont_use_vimrun = FALSE;
  58.       }
  59. *** ../vim-6.2.323/src/version.c    Sun Mar  7 15:21:39 2004
  60. --- src/version.c    Sun Mar  7 16:20:50 2004
  61. ***************
  62. *** 639,640 ****
  63. --- 639,642 ----
  64.   {   /* Add new patch number below this line */
  65. + /**/
  66. +     324,
  67.   /**/
  68.  
  69. -- 
  70.    Another bucket of what can only be described as human ordure hits ARTHUR.
  71. ARTHUR: ... Right!  (to the KNIGHTS) That settles it!
  72.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  73.  
  74.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  75. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  76. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  77.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  78.