(gnus-output-to-mail): Guard as binary.
authormorioka <morioka>
Sun, 17 May 1998 14:17:31 +0000 (14:17 +0000)
committermorioka <morioka>
Sun, 17 May 1998 14:17:31 +0000 (14:17 +0000)
lisp/gnus-util.el

index 3e9394e..ce79981 100644 (file)
@@ -780,7 +780,8 @@ with potentially long computations."
            (let ((file-buffer (create-file-buffer filename)))
              (save-excursion
                (set-buffer file-buffer)
-               (let ((require-final-newline nil))
+               (let ((require-final-newline nil)
+                     (coding-system-for-write 'binary))
                  (gnus-write-buffer filename)))
              (kill-buffer file-buffer))
          (error "Output file does not exist")))
@@ -798,7 +799,8 @@ with potentially long computations."
       ;; Decide whether to append to a file or to an Emacs buffer.
       (let ((outbuf (get-file-buffer filename)))
        (if (not outbuf)
-           (let ((buffer-read-only nil))
+           (let ((buffer-read-only nil)
+                 (coding-system-for-write 'binary))
              (save-excursion
                (goto-char (point-max))
                (forward-char -2)