diff options
author | Eli Zaretskii <eliz@gnu.org> | 2017-03-07 18:37:58 +0200 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2017-03-07 18:37:58 +0200 |
commit | 95f3fd204097fd78be27cf60b390677c6aad61ed (patch) | |
tree | 3ccf88fd955284f5810a3e35b70133a02977acc4 | |
parent | 14af3395e6d8a2a95268138355ade408743922ac (diff) | |
download | emacs-95f3fd204097fd78be27cf60b390677c6aad61ed.tar.gz |
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)
-rw-r--r-- | lisp/net/browse-url.el | 2 |
1 files changed, 1 insertions, 1 deletions
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. |