emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: browse-url and URL handlers (MS-Windows)


From: Eli Zaretskii
Subject: Re: browse-url and URL handlers (MS-Windows)
Date: Tue, 11 Oct 2022 20:39:21 +0300

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: Pascal Quesseveur <pquessev@gmail.com>,  emacs-devel@gnu.org
> Date: Tue, 11 Oct 2022 19:23:19 +0200
> 
> Augusto Stoffel <arstoffel@gmail.com> writes:
> 
> > I've come across issues with file URLs in Windows before, and the
> > problem was that
> >
> >   (url-filename (url-generic-parse-url "file:///C:/some/file"))
> >
> > returns "/C:/some/file", with an extra slash at the beginning.
> 
> That's the correct result.

It is?  How so?  "/C:/some/file" is an invalid file name on Windows.

> The URL should probably be "file://C:/some/file" instead.

No, on Windows the file:// URLs have 3 slashes.  See

  https://en.wikipedia.org/wiki/File_URI_scheme#Windows



reply via email to

[Prev in Thread] Current Thread [Next in Thread]