From a8627008abe4ab339df19b417776da28b3ce0fc7 Mon Sep 17 00:00:00 2001
From: Lars Ingebrigtsen <larsi@gnus.org>
Date: Fri, 25 Dec 2015 08:31:10 +0100
Subject: [PATCH] More eww file name coding fixes

* eww.el (eww-decode-url-file-name): Use the base coding
system to check for encodability.
---
 lisp/net/eww.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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
-- 
2.39.5