Subject: bug#17417: 24.3.90; EWW on MS-Windows tries to connect imaginary FTP server when viewing "file://" URLs

From: Lars Magne Ingebrigtsen <[email-masked]>
Date: Thu, 13 Nov 2014 18:01:33 +0100

Eli Zaretskii <[email-masked]> writes:

> Then visit the file in Emacs's eww like this:
>
>  emacs -Q
>  M-x eww RET file:///D:/foo/bar/Unicode Standard.html RET
>
> The page is displayed, but Emacs also says
>
>   Opening FTP connection to d...
>
> Also, a buffer named *ftp anonymous@d* pops up showing this:
>
>   Invalid help command foo.
>   open d
>   Unknown host d.

That does sound rather, er, non-optimal.

> This does not happen when visiting the same page via http://.  I suspect
> that the "D:" part of the URL fools eww or some function it calls to
> perceive the URL as an FTP address, or something.

But unfortunately, I have no idea what might be causing this.
eww is supposedly just passing the URL along to `url-retrieve'.

Does

(url-retrieve "file:///D:/foo/bar/Unicode Standard.html" 'ignore)

display the same failure mode?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no