From: ueno Date: Thu, 18 Dec 2003 03:23:43 +0000 (+0000) Subject: (pgg-gpg-process-region): Set environment variable X-Git-Tag: semi-1_14_6~2 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9ba042d9b469615ae6476a8b915f7ff150a19311;p=elisp%2Fsemi.git (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 . [cf. ] --- diff --git a/ChangeLog b/ChangeLog index 3d4e837..4c51be2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2003-12-18 Daiki Ueno + + * 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 . + [cf. ] + 2003-12-17 Daiki Ueno * pgg-gpg.el (pgg-gpg-messages-locale): New user option. diff --git a/pgg-gpg.el b/pgg-gpg.el index 957ea61..886a6dc 100644 --- a/pgg-gpg.el +++ b/pgg-gpg.el @@ -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))