changeset 101882:5cd64f3517f3

(rmail): Bind coding-system-for-read to no-conversion before calling find-file-noselect. (Bug#2015)
author Eli Zaretskii <eliz@gnu.org>
date Sat, 07 Feb 2009 18:35:05 +0000
parents 43b1a5e6eb09
children d39e0cfa8a34
files lisp/mail/rmail.el
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.