GNU bug report logs - #1020
url-expand-file-name expands wrongly on Windows

Previous Next

Package: emacs;

Reported by: Klaus Straubinger <KSNetz <at> UseNet.ArcorNews.DE>

Date: Wed, 24 Sep 2008 12:30:03 UTC

Severity: normal

Done: Jason Rumney <jasonr <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #19 received at 1020-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Jason Rumney <jasonr <at> gnu.org>
To: Juanma Barranquero <lekktu <at> gmail.com>,
        1020-done <at> debbugs.gnu.org
Cc: Klaus Straubinger <KSNetz <at> usenet.arcornews.de>
Subject: Re: bug#1020: url-default-expander expands wrongly on Windows
Date: Sat, 21 Feb 2009 16:00:03 +0800
Juanma Barranquero wrote:
>>> the function url-default-expander calls expand-file-name which
>>> inserts interesting but wrong drive letters into URLs when called
>>> on Windows.
>>>       
> ELISP> (url-expand-file-name "test" "http://www.gnu.org/")
> "http://www.gnu.org/c:/test"
> ELISP> (url-expand-file-name "test" "http://www.gnu.org")
> "http://www.gnu.org/c:/emacs/lisp/url/test"
> ELISP> (url-expand-file-name "/test" "http://www.gnu.org/")
> "http://www.gnu.org/test"
> ELISP> (url-expand-file-name "/test" "http://www.gnu.org")
> "http://www.gnu.org/test"
>   

I have changed url-default-expand to use concat instead of 
expand-file-name to avoid this bug.





This bug report was last modified 15 years and 246 days ago.

Previous Next


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