diff --git a/lisp/net/eww.el b/lisp/net/eww.el index 5da7c4929c0c04f98b0da51cfcb8acb0c3d30a33..29b4b876465ef2246b08d59f08ed72ab182400f7 100644 --- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -1426,8 +1426,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