From 6bfe589078d346df6b19fa2b6662aa9934a9ac44 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sun, 25 Apr 2021 20:54:26 +0200 Subject: [PATCH] Hack around problems in Turkish environments in url-proxy MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit * 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 8436c7a4be2..1b3b1905e37 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) -- 2.39.5