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: Augusto Stoffel
Subject: Re: browse-url and URL handlers (MS-Windows)
Date: Tue, 11 Oct 2022 19:43:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13)

On Tue, 11 Oct 2022 at 19:23, Lars Ingebrigtsen wrote:

> 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.

Perhaps.  But then you would be declaring that it's not url.el's
business to try and fix these Windows filename issues.

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

No, for this URL

    (url-host (url-generic-parse-url "file://C:/some/file"))
    ;;=> c

and that's correct.

> I.e., everything after the first two slashes is the path on the local
> machine.

According to Wikipedia the original URL (with three slashes) is correct.



reply via email to

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