| 1 |
Subject: Use the C.UTF-8 locale instead of the C locale for GnuPG programs |
| 2 |
Author: Tatsuya Kinoshita <[email protected]> |
| 3 |
|
| 4 |
--- a/mew-func.el |
| 5 |
+++ b/mew-func.el |
| 6 |
@@ -1193,15 +1193,15 @@ and sets buffer-file-coding-system." |
| 7 |
(defun mew-start-process-lang (name buffer program &rest program-args) |
| 8 |
(let ((process-environment (copy-sequence process-environment))) |
| 9 |
(setenv "LANGUAGE" "C") |
| 10 |
|
| 11 |
|
| 12 |
+ (setenv "LC_ALL" "C.UTF-8") |
| 13 |
+ (setenv "LANG" "C.UTF-8") |
| 14 |
(apply 'start-process name buffer program program-args))) |
| 15 |
|
| 16 |
(defun mew-call-process-lang (prog &optional infile buffer display &rest args) |
| 17 |
(let ((process-environment (copy-sequence process-environment))) |
| 18 |
(setenv "LANGUAGE" "C") |
| 19 |
|
| 20 |
|
| 21 |
+ (setenv "LC_ALL" "C.UTF-8") |
| 22 |
+ (setenv "LANG" "C.UTF-8") |
| 23 |
(apply 'call-process prog infile buffer display args))) |
| 24 |
|
| 25 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |