emacs-diffs
[Top][All Lists]
Advanced

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

master 6bfe589: Hack around problems in Turkish environments in url-prox


From: Lars Ingebrigtsen
Subject: master 6bfe589: Hack around problems in Turkish environments in url-proxy
Date: Sun, 25 Apr 2021 14:55:01 -0400 (EDT)

branch: master
commit 6bfe589078d346df6b19fa2b6662aa9934a9ac44
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Hack around problems in Turkish environments in url-proxy
    
    * lisp/url/url-proxy.el (url-find-proxy-for-url): Work around a
    problem in Turkish language environments (where a downcased I is
    ?ı (bug#44604).
---
 lisp/url/url-proxy.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/url/url-proxy.el b/lisp/url/url-proxy.el
index 8436c7a..1b3b190 100644
--- a/lisp/url/url-proxy.el
+++ b/lisp/url/url-proxy.el
@@ -53,10 +53,10 @@
        (setq proxy (car proxies))
       (setq proxy proxies))
     (cond
-     ((string-match "^direct" proxy) nil)
-     ((string-match "^proxy +" proxy)
+     ((string-match "^DIRECT" proxy) nil)
+     ((string-match "^PROXY +" proxy)
       (concat "http://"; (substring proxy (match-end 0)) "/"))
-     ((string-match "^socks +" proxy)
+     ((string-match "^SOCKS +" proxy)
       (concat "socks://" (substring proxy (match-end 0))))
      (t
       (display-warning 'url (format "Unknown proxy directive: %s" proxy) 
:error)



reply via email to

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