Hello,

I'm using the zip plugin to open OOXML and ODF files pretty often and OOXML 
files are containing a file named [Content_Types.xml]. There is a bug in the 
zip.vim that prevents those files to be opened.

You'll find attached a simple patch against trunk fixing that bug by just 
escaping the file name in the unzip command.

Thanks for your great job!

--
Cedric

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Index: runtime/autoload/zip.vim
===================================================================
--- runtime/autoload/zip.vim	(revision 1889)
+++ runtime/autoload/zip.vim	(working copy)
@@ -199,8 +199,8 @@
 "  call Decho("zipfile<".zipfile.">")
 "  call Decho("fname  <".fname.">")
 
-"  call Decho("exe r! ".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fname,1))
-  exe "silent r! ".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fname,1)
+"  call Decho("exe r! ".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1))
+  exe "silent r! ".g:zip_unzipcmd." -p -- ".s:Escape(zipfile,1)." ".s:Escape(fnameescape(fname),1)
 
   " cleanup
   0d

Raspunde prin e-mail lui