From: Bruno Haible Date: Tue, 14 May 2002 17:19:46 +0000 (+0000) Subject: Update the list of allowed encodings. X-Git-Tag: v0.11.3~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60d596f3c8e501ec64bf1c5914aae69473c40569;p=thirdparty%2Fgettext.git Update the list of allowed encodings. --- diff --git a/doc/ChangeLog b/doc/ChangeLog index 39879f8f1..c424f6412 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,10 @@ +2002-05-12 Bruno Haible + + * gettext.texi (Header Entry): Add ISO-8859-14, KOI8-T, GEORGIAN-PS to + the list of allowed encodings. Mention the languages Breton, + Cornish, Danish, Manx, Occitan, Tagalog, Uzbek, Walloon, Bosnian, + Maori, Welsh, Tajik, Georgian. + 2002-05-11 Bruno Haible * autopoint.texi: Recommend AM_GNU_GETTEXT_VERSION(..) syntax. diff --git a/doc/gettext.texi b/doc/gettext.texi index 952e9534a..372bc083d 100644 --- a/doc/gettext.texi +++ b/doc/gettext.texi @@ -2434,13 +2434,15 @@ are limited to those supported by both GNU @code{libc} and GNU @code{libiconv}. These are: @code{ASCII}, @code{ISO-8859-1}, @code{ISO-8859-2}, @code{ISO-8859-3}, @code{ISO-8859-4}, @code{ISO-8859-5}, @code{ISO-8859-6}, @code{ISO-8859-7}, -@code{ISO-8859-8}, @code{ISO-8859-9}, @code{ISO-8859-13}, @code{ISO-8859-15}, -@code{KOI8-R}, @code{KOI8-U}, @code{CP850}, @code{CP866}, @code{CP874}, +@code{ISO-8859-8}, @code{ISO-8859-9}, @code{ISO-8859-13}, @code{ISO-8859-14}, +@code{ISO-8859-15}, +@code{KOI8-R}, @code{KOI8-U}, @code{KOI8-T}, +@code{CP850}, @code{CP866}, @code{CP874}, @code{CP932}, @code{CP949}, @code{CP950}, @code{CP1250}, @code{CP1251}, @code{CP1252}, @code{CP1253}, @code{CP1254}, @code{CP1255}, @code{CP1256}, @code{CP1257}, @code{GB2312}, @code{EUC-JP}, @code{EUC-KR}, @code{EUC-TW}, @code{BIG5}, @code{BIG5-HKSCS}, @code{GBK}, @code{GB18030}, @code{SHIFT_JIS}, -@code{JOHAB}, @code{TIS-620}, @code{VISCII}, @code{UTF-8}. +@code{JOHAB}, @code{TIS-620}, @code{VISCII}, @code{GEORGIAN-PS}, @code{UTF-8}. @c This data is taken from glibc/localedata/SUPPORTED. @cindex Linux @@ -2450,23 +2452,28 @@ corresponding languages. @cindex encoding for your language @itemize @item @code{ISO-8859-1} for - Afrikaans, Albanian, Basque, Catalan, Dutch, English, Estonian, Faroese, - Finnish, French, Galician, German, Greenlandic, Icelandic, Indonesian, - Irish, Italian, Malay, Norwegian, Portuguese, Spanish, Swedish, + Afrikaans, Albanian, Basque, Breton, Catalan, Cornish, Danish, Dutch, + English, Estonian, Faroese, Finnish, French, Galician, German, + Greenlandic, Icelandic, Indonesian, Irish, Italian, Malay, Manx, + Norwegian, Occitan, Portuguese, Spanish, Swedish, Tagalog, Uzbek, + Walloon, @item @code{ISO-8859-2} for - Croatian, Czech, Hungarian, Polish, Romanian, Serbian, Slovak, Slovenian, + Bosnian, Croatian, Czech, Hungarian, Polish, Romanian, Serbian, Slovak, + Slovenian, @item @code{ISO-8859-3} for Maltese, @item @code{ISO-8859-5} for Macedonian, Serbian, @item @code{ISO-8859-6} for Arabic, @item @code{ISO-8859-7} for Greek, @item @code{ISO-8859-8} for Hebrew, @item @code{ISO-8859-9} for Turkish, -@item @code{ISO-8859-13} for Latvian, Lithuanian, +@item @code{ISO-8859-13} for Latvian, Lithuanian, Maori, +@item @code{ISO-8859-14} for Welsh, @item @code{ISO-8859-15} for Basque, Catalan, Dutch, English, Finnish, French, Galician, German, Irish, - Italian, Portuguese, Spanish, Swedish, + Italian, Portuguese, Spanish, Swedish, Walloon, @item @code{KOI8-R} for Russian, @item @code{KOI8-U} for Ukrainian, +@item @code{KOI8-T} for Tajik, @item @code{CP1251} for Bulgarian, Byelorussian, @item @code{GB2312}, @code{GBK}, @code{GB18030} for simplified writing of Chinese, @@ -2475,6 +2482,7 @@ corresponding languages. @item @code{EUC-JP} for Japanese, @item @code{EUC-KR} for Korean, @item @code{TIS-620} for Thai, +@item @code{GEORGIAN-PS} for Georgian, @item @code{UTF-8} for any language, including those listed above. @end itemize diff --git a/misc/ChangeLog b/misc/ChangeLog index a1a987346..8086fe7f0 100644 --- a/misc/ChangeLog +++ b/misc/ChangeLog @@ -1,3 +1,8 @@ +2002-05-12 Bruno Haible + + * po-compat.el: Add ISO-8859-14, KOI8-T, GEORGIAN-PS to the list of + allowed encodings. + 2002-05-11 Bruno Haible * autopoint.in: Recognize AM_GNU_GETTEXT_VERSION(..) syntax. diff --git a/misc/po-compat.el b/misc/po-compat.el index 83112bb8c..c05832a9f 100644 --- a/misc/po-compat.el +++ b/misc/po-compat.el @@ -94,10 +94,13 @@ (ISO_8859-9 . iso-8859-9) ;(ISO-8859-13 . ??) ;(ISO_8859-13 . ??) + ;(ISO-8859-14 . ??) + ;(ISO_8859-14 . ??) (ISO-8859-15 . iso-8859-15) ; requires Emacs 21 (ISO_8859-15 . iso-8859-15) ; requires Emacs 21 (KOI8-R . koi8-r) ;(KOI8-U . ??) + ;(KOI8-T . ??) (CP437 . cp437) ; requires Emacs 20 (CP775 . cp775) ; requires Emacs 20 (CP850 . cp850) ; requires Emacs 20 @@ -141,6 +144,7 @@ ;(JOHAB . ??) (TIS-620 . tis-620) ; requires Emacs 20 or Emacs 21 (VISCII . viscii) ; requires Emacs 20 or Emacs 21 + ;(GEORGIAN-PS . ??) (UTF-8 . utf-8) ; requires Mule-UCS in Emacs 20, or Emacs 21 ) "How to convert a GNU libc/libiconv canonical charset name as seen in diff --git a/src/ChangeLog b/src/ChangeLog index c700b3908..1bf50035e 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-05-12 Bruno Haible + + * po-charset.c (po_charset_canonicalize): Add ISO-8859-14, KOI8-T, + GEORGIAN-PS to the list of allowed encodings. + 2002-04-30 Bruno Haible * hostname.c (ipv6_ntop): Provide a fallback definition for systems diff --git a/src/po-charset.c b/src/po-charset.c index 357fb5776..b75971664 100644 --- a/src/po-charset.c +++ b/src/po-charset.c @@ -64,9 +64,11 @@ po_charset_canonicalize (charset) "ISO-8859-8", "ISO_8859-8", "ISO-8859-9", "ISO_8859-9", "ISO-8859-13", "ISO_8859-13", - "ISO-8859-15", "ISO_8859-15", /* i = 23, 24 */ + "ISO-8859-14", "ISO_8859-14", + "ISO-8859-15", "ISO_8859-15", /* i = 25, 26 */ "KOI8-R", "KOI8-U", + "KOI8-T", "CP850", "CP866", "CP874", @@ -93,13 +95,14 @@ po_charset_canonicalize (charset) "JOHAB", "TIS-620", "VISCII", + "GEORGIAN-PS", "UTF-8" }; size_t i; for (i = 0; i < SIZEOF (standard_charsets); i++) if (strcasecmp (charset, standard_charsets[i]) == 0) - return standard_charsets[i < 3 ? 0 : i < 25 ? ((i - 3) & ~1) + 3 : i]; + return standard_charsets[i < 3 ? 0 : i < 27 ? ((i - 3) & ~1) + 3 : i]; return NULL; }