GNU bug report logs -
#25183
26.0.50; expanding quoted file name on w32
Previous Next
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
View this message in rfc822 format
Eli Zaretskii <eliz <at> gnu.org> writes:
>> 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.
(file-name-absolute-p "/:~/path/./file")
=> t
Best regards, Michael.
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.