aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2002-06-16 11:44:10 +0000
committerDave Love2002-06-16 11:44:10 +0000
commitdc8533549ecc3ac1b08dd5fb8f052fcff961ef0e (patch)
tree40a8c5a0189da7ca6a76e6b4f218e6e7bfe81500
parent15f2c48a3cb6bfabb762357189ae4543203391e3 (diff)
downloademacs-dc8533549ecc3ac1b08dd5fb8f052fcff961ef0e.tar.gz
emacs-dc8533549ecc3ac1b08dd5fb8f052fcff961ef0e.zip
(set-locale-environment): Use
locale-codeset.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/international/mule-cmds.el8
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b14c6197f62..9f2f5d54a47 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12002-06-16 Dave Love <fx@gnu.org>
2
3 * international/mule-cmds.el (set-locale-environment): Use
4 locale-codeset.
5
12002-06-15 Dave Love <fx@gnu.org> 62002-06-15 Dave Love <fx@gnu.org>
2 7
3 * language/cyrillic.el ("Belarusian"): Doc fix. 8 * language/cyrillic.el ("Belarusian"): Doc fix.
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el
index 9c55deef3a3..d885be3dc77 100644
--- a/lisp/international/mule-cmds.el
+++ b/lisp/international/mule-cmds.el
@@ -1866,8 +1866,10 @@ XX is a country, and CODE specifies a character set and coding system.
1866For example, the locale name \"ja_JP.EUC\" might name a locale 1866For example, the locale name \"ja_JP.EUC\" might name a locale
1867for Japanese in Japan using the `japanese-iso-8bit' coding-system. 1867for Japanese in Japan using the `japanese-iso-8bit' coding-system.
1868 1868
1869If LOCALE-NAME is nil, its value is taken from the environment 1869If LOCALE-NAME is nil, its value is looked up via `locale-codeset'
1870variables LC_ALL, LC_CTYLE and LANG (the first one that is set). 1870using nl_langinfo(3), if that function is available in the system's
1871library, otherwise it is simply taken from the environment variables
1872LC_ALL, LC_CTYPE and LANG \(the first one that is set).
1871 1873
1872The locale names supported by your system can typically be found in a 1874The locale names supported by your system can typically be found in a
1873directory named `/usr/share/locale' or `/usr/lib/locale'. LOCALE-NAME 1875directory named `/usr/share/locale' or `/usr/lib/locale'. LOCALE-NAME
@@ -1894,7 +1896,7 @@ See also `locale-charset-language-names', `locale-language-names',
1894 (setq files (cdr files))) 1896 (setq files (cdr files)))
1895 (car files))) 1897 (car files)))
1896 1898
1897 (let ((locale locale-name)) 1899 (let ((locale (or locale-name (locale-codeset))))
1898 1900
1899 (unless locale 1901 (unless locale
1900 ;; Use the first of these three environment variables 1902 ;; Use the first of these three environment variables