]> git.eshelyaron.com Git - emacs.git/commitdiff
(rmail-output-to-rmail-file): When writing the
authorEli Zaretskii <eliz@gnu.org>
Sun, 11 Mar 2001 11:54:03 +0000 (11:54 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sun, 11 Mar 2001 11:54:03 +0000 (11:54 +0000)
Babyl header to the newly-created output file, bind
coding-system-for-write to either rmail-file-coding-system or
emacs-mule-unix.

lisp/ChangeLog
lisp/mail/rmailout.el

index 5c40581229ee1eb3acd16f43bd314cc8ce6d0a12..364ae072fa4c6ab9ffc28771f3ab29321524b072 100644 (file)
@@ -1,3 +1,10 @@
+2001-03-11  Eli Zaretskii  <eliz@is.elta.co.il>
+
+       * mail/rmailout.el (rmail-output-to-rmail-file): When writing the
+       Babyl header to the newly-created output file, bind
+       coding-system-for-write to either rmail-file-coding-system or
+       emacs-mule-unix.
+
 2001-03-10  Dave Love  <fx@gnu.org>
 
        * toolbar/tool-bar.el (tool-bar-setup): Don't suppress write-file
index 3b7ea24fd7495fbe3d23e1f3f9ac7d13f302947d..d3fd35916cd2b28c1f8d731af6a2ffbf025655eb 100644 (file)
@@ -145,7 +145,10 @@ mesasge up instead of moving forward to the next non-deleted message."
              (save-excursion
                (set-buffer file-buffer)
                (rmail-insert-rmail-file-header)
-               (let ((require-final-newline nil))
+               (let ((require-final-newline nil)
+                     (coding-system-for-write
+                      (or rmail-file-coding-system
+                          'emacs-mule-unix)))
                  (write-region (point-min) (point-max) file-name t 1)))
              (kill-buffer file-buffer))
          (error "Output file does not exist")))