253dd17
To: vim-dev@vim.org
253dd17
Subject: Patch 7.0.048
253dd17
Fcc: outbox
253dd17
From: Bram Moolenaar <Bram@moolenaar.net>
253dd17
Mime-Version: 1.0
253dd17
Content-Type: text/plain; charset=ISO-8859-1
253dd17
Content-Transfer-Encoding: 8bit
253dd17
------------
253dd17
253dd17
Patch 7.0.048
253dd17
Problem:    Writing a compressed file fails when there are parens in the name.
253dd17
	    (Wang Jian)
253dd17
Solution:   Put quotes around the temp file name.
253dd17
Files:	    runtime/autoload/gzip.vim
253dd17
253dd17
253dd17
*** ../vim-7.0.047/runtime/autoload/gzip.vim	Wed Apr  5 22:17:15 2006
253dd17
--- runtime/autoload/gzip.vim	Wed Jul 19 23:53:52 2006
253dd17
***************
253dd17
*** 1,6 ****
253dd17
  " Vim autoload file for editing compressed files.
253dd17
  " Maintainer: Bram Moolenaar <Bram@vim.org>
253dd17
! " Last Change: 2006 Mar 31
253dd17
  
253dd17
  " These functions are used by the gzip plugin.
253dd17
  
253dd17
--- 1,6 ----
253dd17
  " Vim autoload file for editing compressed files.
253dd17
  " Maintainer: Bram Moolenaar <Bram@vim.org>
253dd17
! " Last Change: 2006 Jul 19
253dd17
  
253dd17
  " These functions are used by the gzip plugin.
253dd17
  
253dd17
***************
253dd17
*** 127,135 ****
253dd17
      let nmt = s:tempname(nm)
253dd17
      if rename(nm, nmt) == 0
253dd17
        if exists("b:gzip_comp_arg")
253dd17
! 	call system(a:cmd . " " . b:gzip_comp_arg . " " . nmt)
253dd17
        else
253dd17
! 	call system(a:cmd . " " . nmt)
253dd17
        endif
253dd17
        call rename(nmt . "." . expand("<afile>:e"), nm)
253dd17
      endif
253dd17
--- 127,135 ----
253dd17
      let nmt = s:tempname(nm)
253dd17
      if rename(nm, nmt) == 0
253dd17
        if exists("b:gzip_comp_arg")
253dd17
! 	call system(a:cmd . " " . b:gzip_comp_arg . " '" . nmt . "'")
253dd17
        else
253dd17
! 	call system(a:cmd . " '" . nmt . "'")
253dd17
        endif
253dd17
        call rename(nmt . "." . expand("<afile>:e"), nm)
253dd17
      endif
253dd17
*** ../vim-7.0.047/src/version.c	Tue Aug  8 19:10:35 2006
253dd17
--- src/version.c	Tue Aug  8 19:26:51 2006
253dd17
***************
253dd17
*** 668,669 ****
253dd17
--- 668,671 ----
253dd17
  {   /* Add new patch number below this line */
253dd17
+ /**/
253dd17
+     48,
253dd17
  /**/
253dd17
253dd17
-- 
253dd17
A fool learns from his mistakes, a wise man from someone else's.
253dd17
253dd17
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
253dd17
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
253dd17
\\\        download, build and distribute -- http://www.A-A-P.org        ///
253dd17
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///