Use correct coding system when verifying a pgp signed message
authorAndreas Schwab <schwab@linux-m68k.org>
Thu, 1 Apr 2010 15:34:05 +0000 (17:34 +0200)
committerAndreas Schwab <schwab@linux-m68k.org>
Thu, 1 Apr 2010 15:34:05 +0000 (17:34 +0200)
* mm-uu.el (mm-uu-pgp-signed-extract-1): Use buffer-file-coding-system
if set.

lisp/gnus/ChangeLog
lisp/gnus/mm-uu.el

index 0106e62..8cbee91 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-29  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * mm-decode.el (mm-add-meta-html-tag): Fix regexp matching meta tag.
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)))