[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#54721: 29.0.50; browse-url-file-url fails on Windows since e06319b
From: |
Lars Ingebrigtsen |
Subject: |
bug#54721: 29.0.50; browse-url-file-url fails on Windows since e06319b |
Date: |
Wed, 06 Apr 2022 11:59:48 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Kiên Nguyễn Quang <kien.n.quang@gmail.com> writes:
> - (push "" components)
> + (push (if (string-empty-p dir) "" (substring dir 0 -1)) components)
Thanks; applied with some changes.
> + (let ((url-unreserved-chars `(?: ,@url-unreserved-chars)))
> + (setq file (mapconcat #'url-hexify-string
> + (file-name-split file)
> + "/"))))
This isn't quite correct, because we do want to encode : characters in
file names in general -- just not the first bit on Windows. So I've
adjusted the patch and pushed to Emacs 29.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no