diff options
| author | Eli Zaretskii | 2017-03-07 18:37:58 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-03-07 18:37:58 +0200 |
| commit | 95f3fd204097fd78be27cf60b390677c6aad61ed (patch) | |
| tree | 3ccf88fd955284f5810a3e35b70133a02977acc4 | |
| parent | 14af3395e6d8a2a95268138355ade408743922ac (diff) | |
| download | emacs-95f3fd204097fd78be27cf60b390677c6aad61ed.tar.gz emacs-95f3fd204097fd78be27cf60b390677c6aad61ed.zip | |
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." | |||
| 878 | (error "Browsing URLs is not supported on this system"))) | 878 | (error "Browsing URLs is not supported on this system"))) |
| 879 | ((eq system-type 'cygwin) | 879 | ((eq system-type 'cygwin) |
| 880 | (call-process "cygstart" nil nil nil url)) | 880 | (call-process "cygstart" nil nil nil url)) |
| 881 | (t (w32-shell-execute "open" url)))) | 881 | (t (w32-shell-execute "open" (url-unhex-string url))))) |
| 882 | 882 | ||
| 883 | (defun browse-url-default-macosx-browser (url &optional _new-window) | 883 | (defun browse-url-default-macosx-browser (url &optional _new-window) |
| 884 | "Invoke the macOS system's default Web browser. | 884 | "Invoke the macOS system's default Web browser. |