Commit 4baf35c9 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(rmail-redecode-body): If the old encoding is `undecided', call

find-coding-systems-region to find a proper non-trivial encoding.
parent 857b15e9
2006-10-07 Eli Zaretskii <eliz@gnu.org>
* mail/rmail.el (rmail-redecode-body): If the old encoding is
`undecided', call find-coding-systems-region to find a proper
non-trivial encoding.
2006-10-07 Kevin Ryde <user42@zip.com.au>
 
* textmodes/reftex-vars.el (defgroup reftex): Update home page
......
......@@ -2875,6 +2875,12 @@ iso-8859, koi8-r, etc."
(coding-system-change-eol-conversion
coding
(coding-system-eol-type old-coding)))
;; If old-coding is `undecided', encode-coding-region
;; will not encode the text at all. Find a proper
;; non-trivial encoding to use.
(if (memq (coding-system-base old-coding) '(nil undecided))
(setq old-coding
(car (find-coding-systems-region msgbeg msgend))))
(setq x-coding-header (point-marker))
(narrow-to-region msgbeg msgend)
(encode-coding-region (point) msgend old-coding)
......
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