[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: browse-url and URL handlers (MS-Windows)
From: |
Lars Ingebrigtsen |
Subject: |
Re: browse-url and URL handlers (MS-Windows) |
Date: |
Tue, 11 Oct 2022 20:52:54 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> 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
>
> Ah, right. In any case, the result from url-parse is correct, as far as
> I can see -- otherwise you won't be getting back the original URL with
I was right the first time around:
https://datatracker.ietf.org/doc/html/rfc8089
Everything after the first two slashes is the local-part, so the
local-part of "file:///C:/some/file" is "/C:/some/file", which the URL
library does correctly.
But it's up to the local host to interpret the local part, and
apparently the conventions on Windows is to do further processing on the
"/C:/some/file" part of the URL to end up at "C:/some/file", but that
has to be done on a much higher level.
- Re: browse-url and URL handlers (MS-Windows), (continued)
- Re: browse-url and URL handlers (MS-Windows), Augusto Stoffel, 2022/10/11
- Re: browse-url and URL handlers (MS-Windows), Stefan Monnier, 2022/10/11
- Re: browse-url and URL handlers (MS-Windows), Lars Ingebrigtsen, 2022/10/11
- Re: browse-url and URL handlers (MS-Windows), Eli Zaretskii, 2022/10/11
- Re: browse-url and URL handlers (MS-Windows), Lars Ingebrigtsen, 2022/10/11
- Re: browse-url and URL handlers (MS-Windows), Eli Zaretskii, 2022/10/11
- Re: browse-url and URL handlers (MS-Windows), Lars Ingebrigtsen, 2022/10/11
- Re: browse-url and URL handlers (MS-Windows), Eli Zaretskii, 2022/10/11
- Re: browse-url and URL handlers (MS-Windows), Lars Ingebrigtsen, 2022/10/11
- Re: browse-url and URL handlers (MS-Windows), Pascal Quesseveur, 2022/10/12
- Re: browse-url and URL handlers (MS-Windows),
Lars Ingebrigtsen <=
- Re: browse-url and URL handlers (MS-Windows), Eli Zaretskii, 2022/10/11
- Re: browse-url and URL handlers (MS-Windows), Augusto Stoffel, 2022/10/12
- Re: browse-url and URL handlers (MS-Windows), Augusto Stoffel, 2022/10/11