X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fconfig.charset;h=b1f5d41624c952eeae4d80b982989cbc301b141d;hb=607bcdf5ffd953cb80ba60808242284c14090490;hp=6104d5fd7b2fb66fae00f6781a248ee3902cbd2e;hpb=75fa9a8a26d9eb25872cd50eede1821152fd42bd;p=gnulib.git diff --git a/lib/config.charset b/lib/config.charset index 6104d5fd7..b1f5d4162 100755 --- a/lib/config.charset +++ b/lib/config.charset @@ -30,45 +30,66 @@ # MIME charset name is preferred. # The current list of GNU canonical charset names is as follows. # -# name used by which systems -# ASCII glibc solaris -# ISO-8859-1 glibc aix hpux irix osf solaris -# ISO-8859-2 glibc aix hpux irix solaris -# ISO-8859-4 solaris -# ISO-8859-5 glibc aix hpux irix solaris -# ISO-8859-6 aix hpux solaris -# ISO-8859-7 glibc aix hpux irix osf solaris -# ISO-8859-8 glibc aix hpux solaris -# ISO-8859-9 glibc aix hpux irix osf solaris +# name used by which systems a MIME name? +# ASCII, ANSI_X3.4-1968 glibc solaris freebsd +# ISO-8859-1 glibc aix hpux irix osf solaris freebsd yes +# ISO-8859-2 glibc aix hpux irix solaris freebsd yes +# ISO-8859-3 glibc yes +# ISO-8859-4 solaris yes +# ISO-8859-5 glibc aix hpux irix solaris yes +# ISO-8859-6 glibc aix hpux solaris yes +# ISO-8859-7 glibc aix hpux irix osf solaris yes +# ISO-8859-8 glibc aix hpux solaris yes +# ISO-8859-9 glibc aix hpux irix osf solaris yes # ISO-8859-13 glibc -# ISO-8859-15 aix solaris -# KOI8-R glibc solaris -# KOI8-U glibc +# ISO-8859-15 glibc aix solaris freebsd +# KOI8-R glibc solaris freebsd yes +# KOI8-U glibc yes # CP850 aix osf # CP856 aix -# CP921 aix +# CP866 freebsd +# CP874 win32 # CP922 aix -# CP932 aix +# CP932 aix win32 # CP943 aix +# CP949 win32 +# CP950 win32 # CP1046 aix # CP1124 aix # CP1129 aix -# CP1252 aix -# EUC-CN aix hpux solaris -# EUC-JP aix hpux solaris -# EUC-KR aix hpux solaris -# EUC-TW aix hpux solaris -# BIG5 aix hpux solaris -# GBK aix +# CP1250 win32 +# CP1251 glibc win32 +# CP1252 aix win32 +# CP1253 win32 +# CP1254 win32 +# CP1255 win32 +# CP1256 win32 +# CP1257 win32 +# GB2312 glibc aix hpux irix solaris yes +# EUC-JP glibc aix hpux irix solaris yes +# EUC-KR glibc aix hpux irix solaris yes +# EUC-TW glibc aix hpux irix solaris +# BIG5 glibc aix hpux solaris yes +# BIG5HKSCS glibc +# GBK aix win32 +# GB18030 glibc # SJIS hpux solaris -# TIS-620 aix hpux solaris +# JOHAB glibc win32 +# TIS-620 glibc aix hpux solaris +# VISCII glibc yes # HP-ROMAN8 hpux # HP-ARABIC8 hpux # HP-GREEK8 hpux # HP-HEBREW8 hpux # HP-TURKISH8 hpux # HP-KANA8 hpux -# UTF-8 glibc aix hpux solaris +# UTF-8 glibc aix hpux solaris yes +# +# Note: Names which are not marked as being a MIME name should not be used in +# Internet protocols for information interchange (mail, news, etc.). +# +# Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names. Applications +# must understand both names and treat them as equivalent. # # The first argument passed to this file is the canonical host specification, # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM @@ -80,13 +101,16 @@ os=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'` echo "# This file contains a table of character encoding aliases," echo "# suitable for operating system '${os}'." echo "# It was automatically generated from config.charset." +# List of references, updated during installation: +echo "# Packages using this file: " case "$os" in linux* | *-gnu*) - # With glibc we don't need any canonicalization, because glibc - # supports all GNU canonical names directly. - echo "ANSI_X3.4-1968 ASCII" # this is a nop - echo "ISO_646.IRV:1983 ASCII" # this is a nop - echo "BALTIC ISO-8859-13" # in glibc-2.2 or newer, this is a nop + # With glibc-2.1 or newer, we don't need any canonicalization, + # because glibc has iconv and both glibc and libiconv support all + # GNU canonical names directly. Therefore, the Makefile does not + # need to install the alias file at all. + # The following applies only to glibc-2.0.x and older libcs. + echo "ISO_646.IRV:1983 ASCII" ;; aix*) echo "ISO8859-1 ISO-8859-1" @@ -99,7 +123,7 @@ case "$os" in echo "ISO8859-15 ISO-8859-15" echo "IBM-850 CP850" echo "IBM-856 CP856" - echo "IBM-921 CP921" + echo "IBM-921 ISO-8859-13" echo "IBM-922 CP922" echo "IBM-932 CP932" echo "IBM-943 CP943" @@ -107,7 +131,7 @@ case "$os" in echo "IBM-1124 CP1124" echo "IBM-1129 CP1129" echo "IBM-1252 CP1252" - echo "IBM-eucCN EUC-CN" + echo "IBM-eucCN GB2312" echo "IBM-eucJP EUC-JP" echo "IBM-eucKR EUC-KR" echo "IBM-eucTW EUC-TW" @@ -124,6 +148,7 @@ case "$os" in echo "iso88597 ISO-8859-7" echo "iso88598 ISO-8859-8" echo "iso88599 ISO-8859-9" + echo "iso885915 ISO-8859-15" echo "roman8 HP-ROMAN8" echo "arabic8 HP-ARABIC8" echo "greek8 HP-GREEK8" @@ -135,7 +160,7 @@ case "$os" in echo "eucJP EUC-JP" echo "eucKR EUC-KR" echo "eucTW EUC-TW" - echo "hp15CN EUC-CN" + echo "hp15CN GB2312" #echo "ccdc ?" # what is this? echo "SJIS SJIS" echo "utf8 UTF-8" @@ -146,6 +171,10 @@ case "$os" in echo "ISO8859-5 ISO-8859-5" echo "ISO8859-7 ISO-8859-7" echo "ISO8859-9 ISO-8859-9" + echo "eucCN GB2312" + echo "eucJP EUC-JP" + echo "eucKR EUC-KR" + echo "eucTW EUC-TW" ;; osf*) echo "ISO8859-1 ISO-8859-1" @@ -166,7 +195,7 @@ case "$os" in echo "ISO8859-15 ISO-8859-15" echo "koi8-r KOI8-R" echo "BIG5 BIG5" - echo "gb2312 EUC-CN" + echo "gb2312 GB2312" echo "cns11643 EUC-TW" echo "5601 EUC-KR" echo "eucJP EUC-JP" @@ -175,4 +204,31 @@ case "$os" in #echo "sun_eu_greek ?" # what is this? echo "UTF-8 UTF-8" ;; + freebsd*) + # FreeBSD 3.3 doesn't have nl_langinfo(CODESET); therefore + # localcharset.c falls back to using the full locale name + # from the environment variables. + echo "C ASCII" + echo "US-ASCII ASCII" + for l in lt_LN; do + echo "$l.ASCII ASCII" + done + for l in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \ + fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT lt_LN \ + nl_BE nl_NL no_NO pt_PT sv_SE; do + echo "$l.ISO_8859-1 ISO-8859-1" + echo "$l.DIS_8859-15 ISO-8859-15" + done + for l in hr_HR hu_HU lt_LN pl_PL sl_SI; do + echo "$l.ISO_8859-2 ISO-8859-2" + done + for l in ru_RU ru_SU; do + echo "$l.KOI8-R KOI8-R" + echo "$l.CP866 CP866" + done + ;; + beos*) + # BeOS has a single locale, and it has UTF-8 encoding. + echo "C UTF-8" + ;; esac