]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-convert-babyl-to-mbox): Bind coding-system-for-read to `raw-text', and
authorEli Zaretskii <eliz@gnu.org>
Fri, 30 Jan 2009 14:37:32 +0000 (14:37 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 30 Jan 2009 14:37:32 +0000 (14:37 +0000)
use insert-file-contents instead of insert-file-contents-literally.
Fixes bug #2019.

lisp/ChangeLog
lisp/mail/rmail.el

index d413fe36f49728738f633ba3dea27a6e6a45df5a..e7438813949bbcce855d655d3fe05486878e7286 100644 (file)
@@ -1,3 +1,9 @@
+2009-01-30  Eli Zaretskii  <eliz@gnu.org>
+
+       * mail/rmail.el (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.
+
 2009-01-30  Nick Roberts  <nickrob@snap.net.nz>
 
        * vc-hooks.el (vc-stay-local-p): Let vc-BACKEND-stay-local take
index 79c1c3095d33eb9739a57288943f5c049f258b69..b60145c6d3af18167237f90d136dae45ae303cf3 100644 (file)
@@ -915,9 +915,10 @@ Convert Babyl mail file to mbox format? ")
          (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)