Subject: bug#1020: url-default-expander expands wrongly on Windows

From: "Juanma Barranquero" <[email-masked]>
Date: Tue, 13 Jan 2009 03:09:00 +0100

On Thu, Mar 27, 2008 at 14:54, Stefan Monnier <[email-masked]> wrote:

>> the function url-default-expander calls expand-file-name which
>> inserts interesting but wrong drive letters into URLs when called
>> on Windows.
>
> Can you show an example so as to help us understand the problem?

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"

    Juanma