]> git.eshelyaron.com Git - emacs.git/commit
Special treatment for file:// URIs on Windows
authorSebastián Monía <sebastian@sebasmonia.com>
Tue, 8 Apr 2025 22:09:06 +0000 (18:09 -0400)
committerEshel Yaron <me@eshelyaron.com>
Sun, 13 Apr 2025 20:59:45 +0000 (22:59 +0200)
commit3129dcb1e2b9d9d8472ccbf09cbed1b8269cd2cd
tree5c22c74f04a95e743ece56ed0df022e47a8f9b10
parentad2870ab01be713cac29a3fa87c2c3f485d3d44a
Special treatment for file:// URIs on Windows

* lisp/url/url-parse.el (url-generic-parse-url): Remove prefix /
when a file URI's filename starts with a single letter followed
by a colon and a slash or backslash.
(url-recreate-url): Mirror the change applied when parsing, so
the URL is recreated properly on MS-Windows.
* test/lisp/url/url-parse-tests.el
(url-generic-parse-url/ms-windows-file-uri-hanlding): New test.
(Bug#76982)

(cherry picked from commit fec6e16f143c08d68ad336b9039f8ed1c3cbfc05)
lisp/url/url-parse.el
test/lisp/url/url-parse-tests.el