]> git.eshelyaron.com Git - emacs.git/commitdiff
More eww file name coding fixes
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 25 Dec 2015 07:31:10 +0000 (08:31 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 25 Dec 2015 07:31:10 +0000 (08:31 +0100)
* eww.el (eww-decode-url-file-name): Use the base coding
system to check for encodability.

lisp/net/eww.el

index 091a4aeba86d16d513c91d8936bceaf0d974094d..593ed22dd38aa763826570699562bdc61b11bdd4 100644 (file)
@@ -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