# HG changeset patch # User Eli Zaretskii # Date 1234031705 0 # Node ID 5cd64f3517f39e08176b7dc6b7e6160c60cb4110 # Parent 43b1a5e6eb091e5ccbb08919a3a81e2aacb23193 (rmail): Bind coding-system-for-read to no-conversion before calling find-file-noselect. (Bug#2015) diff -r 43b1a5e6eb09 -r 5cd64f3517f3 lisp/mail/rmail.el --- a/lisp/mail/rmail.el Sat Feb 07 17:07:56 2009 +0000 +++ b/lisp/mail/rmail.el Sat Feb 07 18:35:05 2009 +0000 @@ -843,7 +843,12 @@ (rmail-set-message-counters))) ;; The mail file is either unchanged or not visited. Visit it. (switch-to-buffer - (let ((enable-local-variables nil)) + (let ((enable-local-variables nil) + ;; Force no-conversion by default, since that's what + ;; pre-mbox Rmail did with BABYL files (via + ;; auto-coding-regexp-alist). + (coding-system-for-read + (or coding-system-for-read 'no-conversion))) (find-file-noselect file-name)))) ;; Ensure that the collection and view buffers are in sync and ;; ensure that a message is not being edited.