diff options
| author | Dave Love | 2002-06-16 11:44:10 +0000 |
|---|---|---|
| committer | Dave Love | 2002-06-16 11:44:10 +0000 |
| commit | dc8533549ecc3ac1b08dd5fb8f052fcff961ef0e (patch) | |
| tree | 40a8c5a0189da7ca6a76e6b4f218e6e7bfe81500 | |
| parent | 15f2c48a3cb6bfabb762357189ae4543203391e3 (diff) | |
| download | emacs-dc8533549ecc3ac1b08dd5fb8f052fcff961ef0e.tar.gz emacs-dc8533549ecc3ac1b08dd5fb8f052fcff961ef0e.zip | |
(set-locale-environment): Use
locale-codeset.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/international/mule-cmds.el | 8 |
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 @@ | |||
| 1 | 2002-06-16 Dave Love <fx@gnu.org> | ||
| 2 | |||
| 3 | * international/mule-cmds.el (set-locale-environment): Use | ||
| 4 | locale-codeset. | ||
| 5 | |||
| 1 | 2002-06-15 Dave Love <fx@gnu.org> | 6 | 2002-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. | |||
| 1866 | For example, the locale name \"ja_JP.EUC\" might name a locale | 1866 | For example, the locale name \"ja_JP.EUC\" might name a locale |
| 1867 | for Japanese in Japan using the `japanese-iso-8bit' coding-system. | 1867 | for Japanese in Japan using the `japanese-iso-8bit' coding-system. |
| 1868 | 1868 | ||
| 1869 | If LOCALE-NAME is nil, its value is taken from the environment | 1869 | If LOCALE-NAME is nil, its value is looked up via `locale-codeset' |
| 1870 | variables LC_ALL, LC_CTYLE and LANG (the first one that is set). | 1870 | using nl_langinfo(3), if that function is available in the system's |
| 1871 | library, otherwise it is simply taken from the environment variables | ||
| 1872 | LC_ALL, LC_CTYPE and LANG \(the first one that is set). | ||
| 1871 | 1873 | ||
| 1872 | The locale names supported by your system can typically be found in a | 1874 | The locale names supported by your system can typically be found in a |
| 1873 | directory named `/usr/share/locale' or `/usr/lib/locale'. LOCALE-NAME | 1875 | directory 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 |