From: Eli Zaretskii Date: Tue, 7 Mar 2017 16:37:58 +0000 (+0200) Subject: Support browsing URLs with embedded spaces on MS-Windows X-Git-Tag: emacs-26.0.90~621 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=95f3fd204097fd78be27cf60b390677c6aad61ed;p=emacs.git 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) --- 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.