]> git.eshelyaron.com Git - emacs.git/commitdiff
Hack around problems in Turkish environments in url-proxy
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 25 Apr 2021 18:54:26 +0000 (20:54 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 25 Apr 2021 18:54:56 +0000 (20:54 +0200)
* 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

index 8436c7a4be29c146be1824dcf2f5381f0d2bed34..1b3b1905e37d14a47c488b2530690fc123207df8 100644 (file)
        (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)