GNU bug report logs - #54721
29.0.50; browse-url-file-url fails on Windows since e06319b

Previous Next

Package: emacs;

Reported by: Kiên Nguyễn Quang <kien.n.quang <at> gmail.com>

Date: Tue, 5 Apr 2022 06:58:02 UTC

Severity: normal

Found in version 29.0.50

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 54721 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Kiên Nguyễn Quang <kien.n.quang <at> gmail.com>
Cc: 54721 <at> debbugs.gnu.org
Subject: Re: bug#54721: 29.0.50; browse-url-file-url fails on Windows since
 e06319b
Date: Wed, 06 Apr 2022 11:59:48 +0200
Kiên Nguyễn Quang <kien.n.quang <at> 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




This bug report was last modified 3 years and 46 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.