emacs-devel
[Top][All Lists]
Advanced

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

Re: file:///c:/nxdist/tut/tutorials.html or file:c:/nxdist/tut/tutorials


From: Lennart Borgman
Subject: Re: file:///c:/nxdist/tut/tutorials.html or file:c:/nxdist/tut/tutorials.html?
Date: Thu, 23 Jul 2009 09:10:39 +0200

On Thu, Jul 23, 2009 at 8:59 AM, Stephen J. Turnbull<address@hidden> wrote:
> Lennart Borgman writes:
>
>  > I found it impossible to read. I took a quick look at 3986
>
> OK, I'll read it for you.  RFC 3986 no longer defines any URI schemes,
> unlike RFC 1738 which did define the file URI (among others).  From
> Section 8, they are registered with the IANA.  Looking at the IANA
> registry
>
>    http://www.iana.org/assignments/uri-schemes.html
>
> in fact RFC 1738 still defines the file URI, as follows:
>
>   A file URL takes the form:
>
>       file://<host>/<path>
>
>   where <host> is the fully qualified domain name of the system on
>   which the <path> is accessible, and <path> is a hierarchical
>   directory path of the form <directory>/<directory>/.../<name>.
>
>   As a special case, <host> can be the string "localhost" or the
>   empty string; this is interpreted as `the machine from which the
>   URL is being interpreted'.
>
> "file:c:/nxdist/tut/tutorials.html" doesn't satisfy this definition;
> the "//" that introduces the host component may not be omitted.
>
> Section 4.2: The ABNF shows that a relative reference does not contain
> a scheme.  "file:c:/nxdist/tut/tutorials.html" doesn't satisfy this
> definition, either.
>
> Conclusion: "file:c:/nxdist/tut/tutorials.html" is not a URI.


Thanks. So then there is a bug in browse-url-file-url. It return URI:s
like file:c:/nxdist/tutorial.html.

 I suggest we fix it.




reply via email to

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