From: Lars Ingebrigtsen Date: Sun, 25 Apr 2021 18:54:26 +0000 (+0200) Subject: Hack around problems in Turkish environments in url-proxy X-Git-Tag: emacs-28.0.90~2723 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6bfe589078d346df6b19fa2b6662aa9934a9ac44;p=emacs.git 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). --- 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)