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


View this message in rfc822 format

From: Kiên Nguyễn Quang <kien.n.quang <at> gmail.com>
To: 54721 <at> debbugs.gnu.org
Subject: bug#54721: 29.0.50; browse-url-file-url fails on Windows since e06319b
Date: Tue, 5 Apr 2022 15:57:40 +0900
[Message part 1 (text/plain, inline)]
Error:
*(error "ShellExecute failed: The system cannot find the file specified.")*

It's because e06319b is using `file-name-split` which will discard the
driver name in Windows.
For example:
(file-name-split "c:/Data/projects/notes/techs/.burlIU3pav.html")
# Output: ("" "Data" "projects" "notes" "techs" ".burlIU3pav.html")

Since the driver name is discarded, the constructed URL is
"file:///Data/projects/notes/techs/.burlIU3pav.html", which does not
exist and cannot be opened.
[Message part 2 (text/html, inline)]

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

Previous Next


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