From 9ba042d9b469615ae6476a8b915f7ff150a19311 Mon Sep 17 00:00:00 2001 From: ueno Date: Thu, 18 Dec 2003 03:23:43 +0000 Subject: [PATCH] (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. ] --- ChangeLog | 8 ++++++++ pgg-gpg.el | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) 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)) -- 1.7.10.4