Subject: bug#24486: closed (Re: bug#24486: 25.1; `dired-do-compress-to' needs to call `expand-file-name')

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 23 Sep 2016 08:10:02 +0000

Your bug report

#24486: 25.1; `dired-do-compress-to' needs to call `expand-file-name'

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
24486: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=24486
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#24486: 25.1; `dired-do-compress-to' needs to call `expand-file-name'
From: Eli Zaretskii <[email-masked]>
To: Drew Adams <[email-masked]>
Cc: [email-masked]
Date: Fri, 23 Sep 2016 11:09:50 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> Date: Tue, 20 Sep 2016 13:11:19 -0700 (PDT)
> From: Drew Adams <[email-masked]>
> 
> This line of `dired-do-compress-to':
> 
>          (out-file (read-file-name "Compress to: "))
> 
> needs to be changed to this:
> 
>          (out-file (expand-file-name (read-file-name "Compress to: ")))
> 
> Otherwise, an output file name that is read as, say, ~/some/dir/foo.zip
> ends up erroneously trying to do this, or similar:
> 
> zip I/O error: No such file or directory
> zip error: Could not create output file (/cygdrive/d/some/path//some/dir/foo.zip)

Thanks, fixed on the emacs-25 branch.

Subject: 25.1; `dired-do-compress-to' needs to call `expand-file-name'
From: Drew Adams <[email-masked]>
To: [email-masked]
Date: Tue, 20 Sep 2016 13:11:19 -0700 (PDT)
List-Id: <debbugs-submit.debbugs.gnu.org>

This line of `dired-do-compress-to':

         (out-file (read-file-name "Compress to: "))

needs to be changed to this:

         (out-file (expand-file-name (read-file-name "Compress to: ")))

Otherwise, an output file name that is read as, say, ~/some/dir/foo.zip
ends up erroneously trying to do this, or similar:

zip I/O error: No such file or directory
zip error: Could not create output file (/cygdrive/d/some/path//some/dir/foo.zip)
                                                              ^^
                                                             NOTE

In GNU Emacs 25.1.1 (x86_64-w64-mingw32)
 of 2016-09-17
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --without-dbus --without-compress-install CFLAGS=-static'