Merge from gnus--rel--5.10
authorMiles Bader <miles@gnu.org>
Thu, 7 Sep 2006 05:58:54 +0000 (05:58 +0000)
committerMiles Bader <miles@gnu.org>
Thu, 7 Sep 2006 05:58:54 +0000 (05:58 +0000)
Patches applied:

 * gnus--rel--5.10  (patch 134-135)

   - Merge from emacs--devo--0
   - Update from CVS

2006-09-06  Daiki Ueno  <ueno@unixuser.org>

   * lisp/pgg-gpg.el (pgg-gpg-process-region): Encode passphrase with
   pgg-passphrase-coding-system rather than locale-coding-system.
   * lisp/pgg-def.el (pgg-passphrase-coding-system): New user option.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-428

lisp/ChangeLog
lisp/gnus/ChangeLog
lisp/pgg-def.el
lisp/pgg-gpg.el

index aa2fb64..df7050f 100644 (file)
@@ -1,3 +1,9 @@
+2006-09-06  Daiki Ueno  <ueno@unixuser.org>
+
+       * pgg-gpg.el (pgg-gpg-process-region): Encode passphrase with
+       pgg-passphrase-coding-system rather than locale-coding-system.
+       * pgg-def.el (pgg-passphrase-coding-system): New user option.
+
 2006-09-06  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * progmodes/prolog.el: Remove * in docstrings.
index 142bb93..312d822 100644 (file)
 
        * gnus.el (gnus-group-startup-message): Search for gnus images in
        etc/images/gnus.
-       * mm-util.el (mm-find-charset-region): Likewise.
+       * mm-util.el (mm-image-load-path): Likewise.
        * smiley.el (smiley-data-directory): Search for smilies in
        etc/images/smilies.
 
index 6481a43..790b6bd 100644 (file)
@@ -71,6 +71,13 @@ Whether the passphrase is cached at all is controlled by
   :group 'pgg
   :type 'integer)
 
+(defcustom pgg-passphrase-coding-system
+  (if (boundp 'locale-coding-system)
+      locale-coding-system)
+  "Coding system to encode passphrase."
+  :group 'pgg
+  :type 'coding-system)
+
 (defvar pgg-messages-coding-system nil
   "Coding system used when reading from a PGP external process.")
 
index 07be6c4..4b8b79b 100644 (file)
          (set-process-sentinel process #'ignore)
          (when passphrase
            (setq passphrase-with-newline (concat passphrase "\n"))
-           (if (boundp 'locale-coding-system)
+           (if pgg-passphrase-coding-system
                (progn
                  (setq encoded-passphrase-with-new-line
                        (encode-coding-string passphrase-with-newline
-                                             locale-coding-system))
+                                             pgg-passphrase-coding-system))
                  (pgg-clear-string passphrase-with-newline))
              (setq encoded-passphrase-with-new-line passphrase-with-newline
                    passphrase-with-newline nil))