(pgg-gpg-process-region): Set environment variable
authorueno <ueno>
Thu, 18 Dec 2003 03:23:43 +0000 (03:23 +0000)
committerueno <ueno>
Thu, 18 Dec 2003 03:23:43 +0000 (03:23 +0000)
LANGUAGE as well.  GNU gettext gives precedence to LANGUAGE over
LC_ALL, when different language code is specified.  Thanks to
Tatsuya Kinoshita <tats@vega.ocn.ne.jp>.
[cf. <emacs-mime-ja:1599>]

ChangeLog
pgg-gpg.el

index 3d4e837..4c51be2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2003-12-18  Daiki Ueno  <ueno@unixuser.org>
+
+       * pgg-gpg.el (pgg-gpg-process-region): Set environment variable
+       LANGUAGE as well.  GNU gettext gives precedence to LANGUAGE over
+       LC_ALL, when different language code is specified.  Thanks to
+       Tatsuya Kinoshita <tats@vega.ocn.ne.jp>.
+       [cf. <emacs-mime-ja:1599>]
+
 2003-12-17  Daiki Ueno  <ueno@unixuser.org>
 
        * pgg-gpg.el (pgg-gpg-messages-locale): New user option.
index 957ea61..886a6dc 100644 (file)
@@ -79,7 +79,8 @@
         process status exit-status)
     (when pgg-gpg-messages-locale
       (setq process-environment (copy-sequence process-environment))
-      (setenv "LC_ALL" pgg-gpg-messages-locale))
+      (setenv "LC_ALL" pgg-gpg-messages-locale)
+      (setenv "LANGUAGE" pgg-gpg-messages-locale))
     (with-current-buffer (get-buffer-create errors-buffer)
       (buffer-disable-undo)
       (erase-buffer))