diff options
| author | Dave Love | 2001-12-15 17:42:33 +0000 |
|---|---|---|
| committer | Dave Love | 2001-12-15 17:42:33 +0000 |
| commit | 9c20a8d51687d934b8d9fa018df6a1075f18c5ea (patch) | |
| tree | 52aae81b0f257fbe68d59e3192fb15df1eb3d64c | |
| parent | bc9254e226ef73aeafbea7d4a3613f8c03cbfce6 (diff) | |
| download | emacs-9c20a8d51687d934b8d9fa018df6a1075f18c5ea.tar.gz emacs-9c20a8d51687d934b8d9fa018df6a1075f18c5ea.zip | |
(locale-language-names): Add various
entries. Remove utf-8 special case.
(locale-charset-language-names, locale-preferred-coding-systems):
Add utf-8 case.
(set-language-environment): Process required-features earlier.
| -rw-r--r-- | lisp/international/mule-cmds.el | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/lisp/international/mule-cmds.el b/lisp/international/mule-cmds.el index 0025bf21a96..47cac486fa0 100644 --- a/lisp/international/mule-cmds.el +++ b/lisp/international/mule-cmds.el | |||
| @@ -1433,6 +1433,12 @@ specifies the character set for the major languages of Western Europe." | |||
| 1433 | default-buffer-file-coding-system))) | 1433 | default-buffer-file-coding-system))) |
| 1434 | (reset-language-environment) | 1434 | (reset-language-environment) |
| 1435 | 1435 | ||
| 1436 | ;; The fetaures might set up coding systems. | ||
| 1437 | (let ((required-features (get-language-info language-name 'features))) | ||
| 1438 | (while required-features | ||
| 1439 | (require (car required-features)) | ||
| 1440 | (setq required-features (cdr required-features)))) | ||
| 1441 | |||
| 1436 | (setq current-language-environment language-name) | 1442 | (setq current-language-environment language-name) |
| 1437 | (set-language-environment-coding-systems language-name default-eol-type)) | 1443 | (set-language-environment-coding-systems language-name default-eol-type)) |
| 1438 | (let ((input-method (get-language-info language-name 'input-method))) | 1444 | (let ((input-method (get-language-info language-name 'input-method))) |
| @@ -1659,10 +1665,6 @@ of buffer-file-coding-system set by this function." | |||
| 1659 | (defconst locale-language-names | 1665 | (defconst locale-language-names |
| 1660 | (purecopy | 1666 | (purecopy |
| 1661 | '( | 1667 | '( |
| 1662 | ;; UTF-8 is not yet implemented. | ||
| 1663 | ;; Put this first, so that e.g. "ko.UTF-8" does not match "ko" below. | ||
| 1664 | (".*[._]utf" . nil) | ||
| 1665 | |||
| 1666 | ;; Locale names of the form LANGUAGE[_TERRITORY][.CODESET][@MODIFIER] | 1668 | ;; Locale names of the form LANGUAGE[_TERRITORY][.CODESET][@MODIFIER] |
| 1667 | ;; as specified in the Single Unix Spec, Version 2. | 1669 | ;; as specified in the Single Unix Spec, Version 2. |
| 1668 | ;; LANGUAGE is a language code taken from ISO 639:1988 (E/F) | 1670 | ;; LANGUAGE is a language code taken from ISO 639:1988 (E/F) |
| @@ -1682,8 +1684,8 @@ of buffer-file-coding-system set by this function." | |||
| 1682 | ; ay Aymara | 1684 | ; ay Aymara |
| 1683 | ; az Azerbaijani | 1685 | ; az Azerbaijani |
| 1684 | ; ba Bashkir | 1686 | ; ba Bashkir |
| 1685 | ("be" . "Latin-5") ; Byelorussian | 1687 | ("be" . "Belarussian") ; Belarussian [Byelorussian] |
| 1686 | ("bg" . "Latin-5") ; Bulgarian | 1688 | ("bg" . "Bulgarian") ; Bulgarian |
| 1687 | ; bh Bihari | 1689 | ; bh Bihari |
| 1688 | ; bi Bislama | 1690 | ; bi Bislama |
| 1689 | ; bn Bengali, Bangla | 1691 | ; bn Bengali, Bangla |
| @@ -1730,7 +1732,7 @@ of buffer-file-coding-system set by this function." | |||
| 1730 | ; iu Inuktitut | 1732 | ; iu Inuktitut |
| 1731 | ("ja" . "Japanese") | 1733 | ("ja" . "Japanese") |
| 1732 | ; jw Javanese | 1734 | ; jw Javanese |
| 1733 | ; ka Georgian | 1735 | ("ka" . "Georgian") ; Georgian |
| 1734 | ; kk Kazakh | 1736 | ; kk Kazakh |
| 1735 | ("kl" . "Latin-1") ; Greenlandic | 1737 | ("kl" . "Latin-1") ; Greenlandic |
| 1736 | ; km Cambodian | 1738 | ; km Cambodian |
| @@ -1744,8 +1746,8 @@ of buffer-file-coding-system set by this function." | |||
| 1744 | ("lb" . "Latin-1") ; Luxemburgish | 1746 | ("lb" . "Latin-1") ; Luxemburgish |
| 1745 | ; ln Lingala | 1747 | ; ln Lingala |
| 1746 | ("lo" . "Lao") ; Laothian | 1748 | ("lo" . "Lao") ; Laothian |
| 1747 | ("lt" . "Latin-4") ; Lithuanian | 1749 | ("lt" . "Lithuanian") |
| 1748 | ("lv" . "Latin-4") ; Latvian, Lettish | 1750 | ("lv" . "Latvian") ; Latvian, Lettish |
| 1749 | ; mg Malagasy | 1751 | ; mg Malagasy |
| 1750 | ("mi" . "Latin-7") ; Maori | 1752 | ("mi" . "Latin-7") ; Maori |
| 1751 | ("mk" . "Latin-5") ; Macedonian | 1753 | ("mk" . "Latin-5") ; Macedonian |
| @@ -1794,7 +1796,7 @@ of buffer-file-coding-system set by this function." | |||
| 1794 | ("sw" . "Latin-1") ; Swahili | 1796 | ("sw" . "Latin-1") ; Swahili |
| 1795 | ; ta Tamil glibc uses utf-8 | 1797 | ; ta Tamil glibc uses utf-8 |
| 1796 | ; te Telugu glibc uses utf-8 | 1798 | ; te Telugu glibc uses utf-8 |
| 1797 | ; tg Tajik "Cyrillic-KOI8-T" | 1799 | ("tg" . "Cyrillic-KOI8-T") ; Tajik |
| 1798 | ("th" . "Thai") | 1800 | ("th" . "Thai") |
| 1799 | ; ti Tigrinya | 1801 | ; ti Tigrinya |
| 1800 | ; tk Turkmen | 1802 | ; tk Turkmen |
| @@ -1806,14 +1808,14 @@ of buffer-file-coding-system set by this function." | |||
| 1806 | ; tt Tatar | 1808 | ; tt Tatar |
| 1807 | ; tw Twi | 1809 | ; tw Twi |
| 1808 | ; ug Uighur | 1810 | ; ug Uighur |
| 1809 | ("uk" . "Latin-5") ; Ukrainian | 1811 | ("uk" . "Ukrainian") ; Ukrainian |
| 1810 | ; ur Urdu glibc uses utf-8 | 1812 | ; ur Urdu glibc uses utf-8 |
| 1811 | ("uz" . "Latin-1") ; Uzbek | 1813 | ("uz" . "Latin-1") ; Uzbek |
| 1812 | ("vi" . "Vietnamese") ; glibc uses utf-8 | 1814 | ("vi" . "Vietnamese") ; glibc uses utf-8 |
| 1813 | ; vo Volapuk | 1815 | ; vo Volapuk |
| 1814 | ; wo Wolof | 1816 | ; wo Wolof |
| 1815 | ; xh Xhosa | 1817 | ; xh Xhosa |
| 1816 | ; yi Yiddish | 1818 | ("yi" . "Windows-1255") ; Yiddish |
| 1817 | ; yo Yoruba | 1819 | ; yo Yoruba |
| 1818 | ; za Zhuang | 1820 | ; za Zhuang |
| 1819 | 1821 | ||
| @@ -1863,7 +1865,7 @@ If the language name is nil, there is no corresponding language environment.") | |||
| 1863 | (".*8859[-_]?14\\>" . "Latin-8") | 1865 | (".*8859[-_]?14\\>" . "Latin-8") |
| 1864 | (".*8859[-_]?15\\>" . "Latin-9") | 1866 | (".*8859[-_]?15\\>" . "Latin-9") |
| 1865 | (".*@euro\\>" . "Latin-9") | 1867 | (".*@euro\\>" . "Latin-9") |
| 1866 | )) | 1868 | (".*utf\\(-?8\\)\\>" . "UTF-8"))) |
| 1867 | "List of pairs of locale regexps and charset language names. | 1869 | "List of pairs of locale regexps and charset language names. |
| 1868 | The first element whose locale regexp matches the start of a downcased locale | 1870 | The first element whose locale regexp matches the start of a downcased locale |
| 1869 | specifies the language name whose charsets corresponds to that locale. | 1871 | specifies the language name whose charsets corresponds to that locale. |
| @@ -1876,7 +1878,7 @@ the language name that would otherwise be used for this locale.") | |||
| 1876 | ("ja.*[._]jis7" . iso-2022-jp) | 1878 | ("ja.*[._]jis7" . iso-2022-jp) |
| 1877 | ("ja.*[._]pck" . japanese-shift-jis) | 1879 | ("ja.*[._]pck" . japanese-shift-jis) |
| 1878 | ("ja.*[._]sjis" . japanese-shift-jis) | 1880 | ("ja.*[._]sjis" . japanese-shift-jis) |
| 1879 | )) | 1881 | (".*[._]utf" . utf-8))) |
| 1880 | "List of pairs of locale regexps and preferred coding systems. | 1882 | "List of pairs of locale regexps and preferred coding systems. |
| 1881 | The first element whose locale regexp matches the start of a downcased locale | 1883 | The first element whose locale regexp matches the start of a downcased locale |
| 1882 | specifies the coding system to prefer when using that locale.") | 1884 | specifies the coding system to prefer when using that locale.") |