2 # Output a system dependent table of character encoding aliases.
4 # Copyright (C) 2000 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU Library General Public License as published
8 # by the Free Software Foundation; either version 2, or (at your option)
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Library General Public License for more details.
16 # You should have received a copy of the GNU Library General Public
17 # License along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21 # The table consists of lines of the form
24 # ALIAS is the (system dependent) result of "nl_langinfo (CODESET)".
25 # ALIAS is compared in a case sensitive way.
27 # CANONICAL is the GNU canonical name for this character encoding.
28 # It must be an encoding supported by libiconv. Support by GNU libc is
29 # also desirable. CANONICAL is case insensitive. Usually an upper case
30 # MIME charset name is preferred.
31 # The current list of GNU canonical charset names is as follows.
33 # name used by which systems
35 # ISO-8859-1 glibc aix hpux irix osf solaris
36 # ISO-8859-2 glibc aix hpux irix solaris
38 # ISO-8859-5 glibc aix hpux irix solaris
39 # ISO-8859-6 aix hpux solaris
40 # ISO-8859-7 glibc aix hpux irix osf solaris
41 # ISO-8859-8 glibc aix hpux solaris
42 # ISO-8859-9 glibc aix hpux irix osf solaris
44 # ISO-8859-15 aix solaris
45 # KOI8-R glibc solaris
57 # EUC-CN aix hpux solaris
58 # EUC-JP aix hpux solaris
59 # EUC-KR aix hpux solaris
60 # EUC-TW aix hpux solaris
61 # BIG5 aix hpux solaris
64 # TIS-620 aix hpux solaris
71 # UTF-8 glibc aix hpux solaris
73 # The first argument passed to this file is the canonical host specification,
74 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
76 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
79 os=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'`
80 echo "# This file contains a table of character encoding aliases,"
81 echo "# suitable for operating system '${os}'."
82 echo "# It was automatically generated from config.charset."
85 # With glibc we don't need any canonicalization, because glibc
86 # supports all GNU canonical names directly.
87 echo "ANSI_X3.4-1968 ASCII" # this is a nop
88 echo "ISO_646.IRV:1983 ASCII" # this is a nop
89 echo "BALTIC ISO-8859-13" # in glibc-2.2 or newer, this is a nop
92 echo "ISO8859-1 ISO-8859-1"
93 echo "ISO8859-2 ISO-8859-2"
94 echo "ISO8859-5 ISO-8859-5"
95 echo "ISO8859-6 ISO-8859-6"
96 echo "ISO8859-7 ISO-8859-7"
97 echo "ISO8859-8 ISO-8859-8"
98 echo "ISO8859-9 ISO-8859-9"
99 echo "ISO8859-15 ISO-8859-15"
106 echo "IBM-1046 CP1046"
107 echo "IBM-1124 CP1124"
108 echo "IBM-1129 CP1129"
109 echo "IBM-1252 CP1252"
110 echo "IBM-eucCN EUC-CN"
111 echo "IBM-eucJP EUC-JP"
112 echo "IBM-eucKR EUC-KR"
113 echo "IBM-eucTW EUC-TW"
116 echo "TIS-620 TIS-620"
120 echo "iso88591 ISO-8859-1"
121 echo "iso88592 ISO-8859-2"
122 echo "iso88595 ISO-8859-5"
123 echo "iso88596 ISO-8859-6"
124 echo "iso88597 ISO-8859-7"
125 echo "iso88598 ISO-8859-8"
126 echo "iso88599 ISO-8859-9"
127 echo "roman8 HP-ROMAN8"
128 echo "arabic8 HP-ARABIC8"
129 echo "greek8 HP-GREEK8"
130 echo "hebrew8 HP-HEBREW8"
131 echo "turkish8 HP-TURKISH8"
132 echo "kana8 HP-KANA8"
133 echo "tis620 TIS-620"
139 #echo "ccdc ?" # what is this?
144 echo "ISO8859-1 ISO-8859-1"
145 echo "ISO8859-2 ISO-8859-2"
146 echo "ISO8859-5 ISO-8859-5"
147 echo "ISO8859-7 ISO-8859-7"
148 echo "ISO8859-9 ISO-8859-9"
151 echo "ISO8859-1 ISO-8859-1"
152 echo "ISO8859-7 ISO-8859-7"
153 echo "ISO8859-9 ISO-8859-9"
158 echo "ISO8859-1 ISO-8859-1"
159 echo "ISO8859-2 ISO-8859-2"
160 echo "ISO8859-4 ISO-8859-4"
161 echo "ISO8859-5 ISO-8859-5"
162 echo "ISO8859-6 ISO-8859-6"
163 echo "ISO8859-7 ISO-8859-7"
164 echo "ISO8859-8 ISO-8859-8"
165 echo "ISO8859-9 ISO-8859-9"
166 echo "ISO8859-15 ISO-8859-15"
170 echo "cns11643 EUC-TW"
174 echo "TIS620.2533 TIS-620"
175 #echo "sun_eu_greek ?" # what is this?