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.
This commit is contained in:
Eli Zaretskii 2026-06-21 18:00:51 +03:00
parent 107dfb4db8
commit 5ab3553e70

View file

@ -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)