bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs 21.0.101 emacsbug should report LC_MESSAGES, LC_TIME, etc.


From: Paul Eggert
Subject: emacs 21.0.101 emacsbug should report LC_MESSAGES, LC_TIME, etc.
Date: Wed, 28 Mar 2001 01:16:55 -0800 (PST)

emacsbug.el currently reports the settings of LC_ALL, LC_CTYPE, and
LANG, but the changes to Emacs's locale handling over the last couple
of years mean that the other categories (notably LC_MESSAGES and
LC_TIME) also affect Emacs's behavior.  Here's a proposed patch to
cause Emacs to report all the locale-related environment variables.

2001-03-27  Paul Eggert  <address@hidden>

        * mail/emacsbug.el (report-emacs-bug): Report LC_COLLATE,
        LC_MESSAGES, LC_MONETARY, LC_NUMERIC, and LC_TIME as well.

diff -pru emacs-21.0.101/lisp/mail/emacsbug.el 
emacs-21.0.101-fix/lisp/mail/emacsbug.el
--- emacs-21.0.101/lisp/mail/emacsbug.el        Wed Jan 24 08:51:54 2001
+++ emacs-21.0.101-fix/lisp/mail/emacsbug.el    Tue Mar 27 09:55:14 2001
@@ -120,9 +120,11 @@ translators to read other languages for 
        (insert "configured using `configure "
                system-configuration-options "'\n"))
     (insert "Important settings:\n")
-    (insert (format "  value of $LC_ALL: %s\n" (getenv "LC_ALL")))
-    (insert (format "  value of $LC_CTYPE: %s\n" (getenv "LC_CTYPE")))
-    (insert (format "  value of $LANG: %s\n" (getenv "LANG")))
+    (mapcar
+     '(lambda (var)
+       (insert (format "  value of $%s: %s\n" var (getenv var))))
+     '("LC_ALL" "LC_COLLATE" "LC_CTYPE" "LC_MESSAGES"
+       "LC_MONETARY" "LC_NUMERIC" "LC_TIME" "LANG"))
     (insert (format "  locale-coding-system: %s\n" locale-coding-system))
     (insert (format "  default-enable-multibyte-characters: %s\n"
                    default-enable-multibyte-characters))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]