]> git.eshelyaron.com Git - emacs.git/commitdiff
* gnus-art.el (gnus-output-to-file): Bind file-name-coding-system.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Sat, 18 Aug 2001 19:22:22 +0000 (19:22 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Sat, 18 Aug 2001 19:22:22 +0000 (19:22 +0000)
* gnus-util.el (gnus-output-to-rmail): Ditto.
(gnus-output-to-mail): Ditto.

* nnmail.el (nnmail-pathname-coding-system): Set default to nil.

lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el
lisp/gnus/gnus-util.el
lisp/gnus/nnmail.el

index 072195b61393b7ac9a93c4c12563ca7e37be8c1d..e52646e1bba56a5e25e704b9d32a0ae323d61fc7 100644 (file)
@@ -1,3 +1,12 @@
+2001-08-18  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * gnus-art.el (gnus-output-to-file): Bind file-name-coding-system.
+
+       * gnus-util.el (gnus-output-to-rmail): Ditto.
+       (gnus-output-to-mail): Ditto.
+
+       * nnmail.el (nnmail-pathname-coding-system): Set default to nil.
+       
 2001-08-07  Gerd Moellmann  <gerd@gnu.org>
 
        * mm-uu.el (mm-uu-dissect, mm-uu-test): Fix autoload cookies.
index d8125828d2fe04f8d74df0c2c0099ab06be257f6..00a444f93d2a003cb53f3ea63989ea3d1d114da3 100644 (file)
@@ -3650,7 +3650,8 @@ Provided for backwards compatibility."
       ;; save it to file.
       (goto-char (point-max))
       (insert "\n")
-      (mm-append-to-file (point-min) (point-max) file-name)
+      (let ((file-name-coding-system nnmail-pathname-coding-system))
+       (mm-append-to-file (point-min) (point-max) file-name))
       t)))
 
 (defun gnus-narrow-to-page (&optional arg)
index 061a0610a70fc407d35307fd7f7c4fc2d225a6f6..7417543278cca7cafd4f8206d26031101c480ed5 100644 (file)
@@ -691,7 +691,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)
-           (mm-append-to-file (point-min) (point-max) filename)
+           (let ((file-name-coding-system nnmail-pathname-coding-system))
+             (mm-append-to-file (point-min) (point-max) filename))
          ;; File has been visited, in buffer OUTBUF.
          (set-buffer outbuf)
          (let ((buffer-read-only nil)
@@ -760,7 +761,8 @@ with potentially long computations."
                    (insert "\n"))
                  (insert "\n"))
                (goto-char (point-max))
-               (mm-append-to-file (point-min) (point-max) filename)))
+               (let ((file-name-coding-system nnmail-pathname-coding-system))
+                 (mm-append-to-file (point-min) (point-max) filename))))
          ;; File has been visited, in buffer OUTBUF.
          (set-buffer outbuf)
          (let ((buffer-read-only nil))
index 504c8083b8a82672d799a999dea8697baa59e77a..9234325eac07309a1320b84e26a649259280813d 100644 (file)
@@ -466,7 +466,7 @@ parameter.  It should return nil, `warn' or `delete'."
   mm-text-coding-system
   "Coding system used in reading inbox")
 
-(defvar nnmail-pathname-coding-system 'binary
+(defvar nnmail-pathname-coding-system nil
   "*Coding system for pathname.")
 
 (defun nnmail-find-file (file)