]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix bugs #6144 and #6467.
authorEli Zaretskii <eliz@gnu.org>
Fri, 25 Jun 2010 11:42:47 +0000 (14:42 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 25 Jun 2010 11:42:47 +0000 (14:42 +0300)
 arc-mode.el (archive-zip-extract): Don't quote the file name on
 MS-Windows and MS-DOS.  (Bug#6467, Bug#6144)

lisp/ChangeLog
lisp/arc-mode.el

index 4c816a779e954846be97d15cd9d034476d13943e..ca9e18ad585d720fd6fdfd56dadf76cf5927a66f 100644 (file)
@@ -1,3 +1,8 @@
+2010-06-25  Eli Zaretskii  <eliz@gnu.org>
+
+       * arc-mode.el (archive-zip-extract): Don't quote the file name on
+       MS-Windows and MS-DOS.  (Bug#6467, Bug#6144)
+
 2010-06-24  Štěpán Němec  <stepnem@gmail.com>  (tiny change)
 
        * comint.el (make-comint, make-comint-in-buffer): Mention return
index 5942e920a6503d4f9243c2916cff599c10119896..1cb3ade9a2d797cb7f61a08d5d7e770fa819333c 100644 (file)
@@ -1791,9 +1791,13 @@ This doesn't recover lost files, it just undoes changes in the buffer itself."
       (archive-*-extract archive name archive-zip-extract)
     (archive-extract-by-stdout
      archive
-     ;; unzip expands wildcards in NAME, so we need to quote it.
+     ;; unzip expands wildcards in NAME, so we need to quote it.  But
+     ;; not on DOS/Windows, since that fails extraction on those
+     ;; systems, and file names with wildcards in zip archives don't
+     ;; work there anyway.
      ;; FIXME: Does pkunzip need similar treatment?
-     (if (equal (car archive-zip-extract) "unzip")
+     (if (and (not (memq system-type '(windows-nt ms-dos)))
+             (equal (car archive-zip-extract) "unzip"))
         (shell-quote-argument name)
        name)
      archive-zip-extract)))