(mm-uu-pgp-signed-extract-1): Use buffer-file-coding-system if set.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 1 Apr 2010 23:15:17 +0000 (23:15 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 1 Apr 2010 23:15:17 +0000 (23:15 +0000)
By Andreas Schwab <schwab@linux-m68k.org>.

lisp/ChangeLog
lisp/mm-uu.el

index b2f8b87..58aeee8 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-01  Andreas Schwab  <schwab@linux-m68k.org>
+
+       * mm-uu.el (mm-uu-pgp-signed-extract-1): Use buffer-file-coding-system
+       if set.
+
 2010-03-31  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * gnus-art.el (gnus-article-browse-html-save-cid-content): Rename from
index c690713..5ae9205 100644 (file)
@@ -486,9 +486,11 @@ apply the face `mm-uu-extract'."
       (if (mm-uu-pgp-signed-test)
          (progn
            (mml2015-clean-buffer)
-           (let ((coding-system-for-write (or gnus-newsgroup-charset
+           (let ((coding-system-for-write (or buffer-file-coding-system
+                                              gnus-newsgroup-charset
                                               'iso-8859-1))
-                 (coding-system-for-read (or gnus-newsgroup-charset
+                 (coding-system-for-read (or buffer-file-coding-system
+                                             gnus-newsgroup-charset
                                              'iso-8859-1)))
              (funcall (mml2015-clear-verify-function))))
        (when (and mml2015-use (null (mml2015-clear-verify-function)))