[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] emacs-26 7a8f22b: * test/lisp/url/url-file-tests.el (u
From: |
Juanma Barranquero |
Subject: |
Re: [Emacs-diffs] emacs-26 7a8f22b: * test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://. |
Date: |
Fri, 28 Jun 2019 06:08:48 +0200 |
The standard is not defined diferently for Posix and non-Posix
filenames. It says that the URI is file://[hostname]/path.
Some interpret it as if that means file://[hostname] + "/path", but
that is incorrect, or file://C:/my/path would be correct for a
Windows-style path (it is not).
It is defined so, for a //hostname/path, you extract hostname and path
(without the slashes) and put them in the corresponding slots of the
URI. For a /path, you extract the path, and put it into its slot (and
the hostname slot is empty).
Evidently, most implementations just use file:// and concatenate the
Posix filename, and it just works. That it breaks with Windows-style
paths shows that something isn't really right.
But anyway, it's a moot point. If you want to fix the test for Cygwin,
please do.
- Re: [Emacs-diffs] emacs-26 7a8f22b: * test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://., Ken Brown, 2019/06/27
- Re: [Emacs-diffs] emacs-26 7a8f22b: * test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://., Juanma Barranquero, 2019/06/27
- Re: [Emacs-diffs] emacs-26 7a8f22b: * test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://., Ken Brown, 2019/06/27
- Re: [Emacs-diffs] emacs-26 7a8f22b: * test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://., Juanma Barranquero, 2019/06/27
- Re: [Emacs-diffs] emacs-26 7a8f22b: * test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://., Ken Brown, 2019/06/27
- Re: [Emacs-diffs] emacs-26 7a8f22b: * test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://.,
Juanma Barranquero <=
- Re: [Emacs-diffs] emacs-26 7a8f22b: * test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://., Ken Brown, 2019/06/28
- Re: [Emacs-diffs] emacs-26 7a8f22b: * test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://., Juanma Barranquero, 2019/06/28
- Re: [Emacs-diffs] emacs-26 7a8f22b: * test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://., Ken Brown, 2019/06/28
- Re: [Emacs-diffs] emacs-26 7a8f22b: * test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://., Juanma Barranquero, 2019/06/28
- Re: [Emacs-diffs] emacs-26 7a8f22b: * test/lisp/url/url-file-tests.el (url-file): Use file:///, not file://., Ken Brown, 2019/06/28