master 5ab3553e705: Fix 'rmail-revert' with non-ASCII characters in email messages

Eli Zaretskii <[email protected]>
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: master
commit 5ab3553e705cdbc8b840e1b263ab9ffdfe47e8bd
Author: Eli Zaretskii <[email protected]>
Commit: Eli Zaretskii <[email protected]>

    Fix 'rmail-revert' with non-ASCII characters in email messages
    
    * lisp/mail/rmail.el (rmail-revert): Don't convert the buffer to
    multibyte, it should remain unibyte for the revert to DTRT.
---
 lisp/mail/rmail.el | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index d51a90d1e63..c168d6b750e 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -1517,11 +1517,6 @@ If so restore the actual mbox message collection."
       (rmail-mode-2)
       ;; Convert all or part to Babyl file if possible.
       (rmail-convert-file-maybe)
-      ;; We have read the file as raw-text, so the buffer is set to
-      ;; unibyte.  Make it multibyte if necessary.
-      (if (and rmail-enable-multibyte
-	       (not enable-multibyte-characters))
-	  (set-buffer-multibyte t))
       (goto-char (point-max))
       (rmail-set-message-counters)
       (rmail-show-message rmail-total-messages)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.