GNU bug report logs - #25183
26.0.50; expanding quoted file name on w32

Previous Next

Package: emacs;

Reported by: Michael Albinus <michael.albinus <at> gmx.de>

Date: Mon, 12 Dec 2016 15:55:02 UTC

Severity: normal

Found in version 26.0.50

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 25183 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 25183 <at> debbugs.gnu.org
Subject: Re: bug#25183: 26.0.50; expanding quoted file name on w32
Date: Mon, 12 Dec 2016 18:48:18 +0200
> From: Michael Albinus <michael.albinus <at> gmx.de>
> Date: Mon, 12 Dec 2016 16:54:06 +0100
> 
> 
> Expanding a quoted file name works wrong on w32 systems. With Emacs
> running on ‘gnu/linux’, there is
> 
> (expand-file-name "/:~/path/./file")
> => "/:~/path/file"
> 
> This is correct. With Emacs running on ‘windows-nt’, there is
> 
> (expand-file-name "/:~/path/./file")
> => "/:c:/Users/lb01177/AppData/Roaming/path/file"

Try

   (expand-file-name "/:c:/~/path/./file")

expand-file-name needs to produce an absolute file name, and a file
name that begins with a "~" isn't.

IOW, I believe this is a feature.  If you think it isn't, please
explain why.




This bug report was last modified 8 years and 195 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.