Commit a8627008 authored by Lars Ingebrigtsen's avatar Lars Ingebrigtsen

More eww file name coding fixes

* eww.el (eww-decode-url-file-name): Use the base coding
system to check for encodability.
parent 2a0f18d9
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment