emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 95f3fd2: Support browsing URLs with embedded spaces


From: Eli Zaretskii
Subject: [Emacs-diffs] master 95f3fd2: Support browsing URLs with embedded spaces on MS-Windows
Date: Tue, 7 Mar 2017 11:39:25 -0500 (EST)

branch: master
commit 95f3fd204097fd78be27cf60b390677c6aad61ed
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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 a7c879c..04b49c4 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]