changeset 101676:5fd0ba414a8c

(rmail-convert-babyl-to-mbox): Bind coding-system-for-read to `raw-text', and use insert-file-contents instead of insert-file-contents-literally. Fixes bug #2019.
author Eli Zaretskii <eliz@gnu.org>
date Fri, 30 Jan 2009 14:36:37 +0000
parents 9c67a492eb59
children 581bdd1e6b5f
files lisp/mail/rmail.el
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mail/rmail.el	Fri Jan 30 13:06:07 2009 +0000
+++ b/lisp/mail/rmail.el	Fri Jan 30 14:36:37 2009 +0000
@@ -915,9 +915,10 @@
 	  (write-region (point-min) (point-max) old-file)
 	  (unrmail old-file new-file)
 	  (message "Replacing BABYL format with mbox format...")
-	  (let ((inhibit-read-only t))
+	  (let ((inhibit-read-only t)
+		(coding-system-for-read 'raw-text))
 	    (erase-buffer)
-	    (insert-file-contents-literally new-file)
+	    (insert-file-contents new-file)
 	    (rmail-mode-1)
 	    (rmail-perm-variables)
 	    (rmail-variables)