From: Lars Ingebrigtsen Date: Fri, 25 Dec 2015 07:31:10 +0000 (+0100) Subject: More eww file name coding fixes X-Git-Tag: emacs-26.0.90~2870 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=a8627008abe4ab339df19b417776da28b3ce0fc7;p=emacs.git More eww file name coding fixes * eww.el (eww-decode-url-file-name): Use the base coding system to check for encodability. --- diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 091a4aeba86..593ed22dd38 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -1430,8 +1430,8 @@ Differences in #targets are ignored." (car (detect-coding-string binary)))))) (encodes (find-coding-systems-string decoded))) (if (or (equal encodes '(undecided)) - (memq (or file-name-coding-system - default-file-name-coding-system) + (memq (coding-system-base (or file-name-coding-system + default-file-name-coding-system)) encodes)) decoded ;; If we can't encode the decoded file name (due to language