From 95f3fd204097fd78be27cf60b390677c6aad61ed Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 7 Mar 2017 18:37:58 +0200 Subject: [PATCH] Support browsing URLs with embedded spaces on MS-Windows * lisp/net/browse-url.el (browse-url-default-windows-browser): Unhex %XX hex-encoded characters, as w32-shell-execute doesn't support that in file:// URLs. (Bug#26014) --- lisp/net/browse-url.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/net/browse-url.el b/lisp/net/browse-url.el index a7c879cbfbc..04b49c44313 100644 --- a/lisp/net/browse-url.el +++ b/lisp/net/browse-url.el @@ -878,7 +878,7 @@ The optional NEW-WINDOW argument is not used." (error "Browsing URLs is not supported on this system"))) ((eq system-type 'cygwin) (call-process "cygstart" nil nil nil url)) - (t (w32-shell-execute "open" url)))) + (t (w32-shell-execute "open" (url-unhex-string url))))) (defun browse-url-default-macosx-browser (url &optional _new-window) "Invoke the macOS system's default Web browser. -- 2.39.5