2 # Output a system dependent table of character encoding aliases.
4 # Copyright (C) 2000-2002 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 a MIME name?
34 # ASCII, ANSI_X3.4-1968 glibc solaris freebsd
35 # ISO-8859-1 glibc aix hpux irix osf solaris freebsd yes
36 # ISO-8859-2 glibc aix hpux irix osf solaris freebsd yes
37 # ISO-8859-3 glibc yes
38 # ISO-8859-4 osf solaris freebsd yes
39 # ISO-8859-5 glibc aix hpux irix osf solaris freebsd yes
40 # ISO-8859-6 glibc aix hpux solaris yes
41 # ISO-8859-7 glibc aix hpux irix osf solaris yes
42 # ISO-8859-8 glibc aix hpux osf solaris yes
43 # ISO-8859-9 glibc aix hpux irix osf solaris yes
45 # ISO-8859-15 glibc aix osf solaris freebsd
46 # KOI8-R glibc solaris freebsd yes
47 # KOI8-U glibc freebsd yes
78 # GB2312 glibc aix hpux irix solaris freebsd yes
79 # EUC-JP glibc aix hpux irix osf solaris freebsd yes
80 # EUC-KR glibc aix hpux irix osf solaris freebsd yes
81 # EUC-TW glibc aix hpux irix osf solaris
82 # BIG5 glibc aix hpux osf solaris freebsd yes
84 # GBK aix osf win32 dos
86 # SHIFT_JIS hpux osf solaris freebsd yes
88 # TIS-620 glibc aix hpux osf solaris
98 # UTF-8 glibc aix hpux osf solaris yes
100 # Note: Names which are not marked as being a MIME name should not be used in
101 # Internet protocols for information interchange (mail, news, etc.).
103 # Note: ASCII and ANSI_X3.4-1968 are synonymous canonical names. Applications
104 # must understand both names and treat them as equivalent.
106 # The first argument passed to this file is the canonical host specification,
107 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
109 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
112 os
=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'`
113 echo "# This file contains a table of character encoding aliases,"
114 echo "# suitable for operating system '${os}'."
115 echo "# It was automatically generated from config.charset."
116 # List of references, updated during installation:
117 echo "# Packages using this file: "
120 # With glibc-2.1 or newer, we don't need any canonicalization,
121 # because glibc has iconv and both glibc and libiconv support all
122 # GNU canonical names directly. Therefore, the Makefile does not
123 # need to install the alias file at all.
124 # The following applies only to glibc-2.0.x and older libcs.
125 echo "ISO_646.IRV:1983 ASCII"
128 echo "ISO8859-1 ISO-8859-1"
129 echo "ISO8859-2 ISO-8859-2"
130 echo "ISO8859-5 ISO-8859-5"
131 echo "ISO8859-6 ISO-8859-6"
132 echo "ISO8859-7 ISO-8859-7"
133 echo "ISO8859-8 ISO-8859-8"
134 echo "ISO8859-9 ISO-8859-9"
135 echo "ISO8859-15 ISO-8859-15"
138 echo "IBM-921 ISO-8859-13"
142 echo "IBM-1046 CP1046"
143 echo "IBM-1124 CP1124"
144 echo "IBM-1129 CP1129"
145 echo "IBM-1252 CP1252"
146 echo "IBM-eucCN GB2312"
147 echo "IBM-eucJP EUC-JP"
148 echo "IBM-eucKR EUC-KR"
149 echo "IBM-eucTW EUC-TW"
152 echo "TIS-620 TIS-620"
156 echo "iso88591 ISO-8859-1"
157 echo "iso88592 ISO-8859-2"
158 echo "iso88595 ISO-8859-5"
159 echo "iso88596 ISO-8859-6"
160 echo "iso88597 ISO-8859-7"
161 echo "iso88598 ISO-8859-8"
162 echo "iso88599 ISO-8859-9"
163 echo "iso885915 ISO-8859-15"
164 echo "roman8 HP-ROMAN8"
165 echo "arabic8 HP-ARABIC8"
166 echo "greek8 HP-GREEK8"
167 echo "hebrew8 HP-HEBREW8"
168 echo "turkish8 HP-TURKISH8"
169 echo "kana8 HP-KANA8"
170 echo "tis620 TIS-620"
176 #echo "ccdc ?" # what is this?
177 echo "SJIS SHIFT_JIS"
181 echo "ISO8859-1 ISO-8859-1"
182 echo "ISO8859-2 ISO-8859-2"
183 echo "ISO8859-5 ISO-8859-5"
184 echo "ISO8859-7 ISO-8859-7"
185 echo "ISO8859-9 ISO-8859-9"
192 echo "ISO8859-1 ISO-8859-1"
193 echo "ISO8859-2 ISO-8859-2"
194 echo "ISO8859-4 ISO-8859-4"
195 echo "ISO8859-5 ISO-8859-5"
196 echo "ISO8859-7 ISO-8859-7"
197 echo "ISO8859-8 ISO-8859-8"
198 echo "ISO8859-9 ISO-8859-9"
199 echo "ISO8859-15 ISO-8859-15"
202 echo "dechanyu DEC-HANYU"
203 echo "dechanzi GB2312"
204 echo "deckanji DEC-KANJI"
205 echo "deckorean EUC-KR"
211 echo "sdeckanji EUC-JP"
212 echo "SJIS SHIFT_JIS"
213 echo "TACTIS TIS-620"
218 echo "ISO8859-1 ISO-8859-1"
219 echo "ISO8859-2 ISO-8859-2"
220 echo "ISO8859-4 ISO-8859-4"
221 echo "ISO8859-5 ISO-8859-5"
222 echo "ISO8859-6 ISO-8859-6"
223 echo "ISO8859-7 ISO-8859-7"
224 echo "ISO8859-8 ISO-8859-8"
225 echo "ISO8859-9 ISO-8859-9"
226 echo "ISO8859-15 ISO-8859-15"
230 echo "cns11643 EUC-TW"
234 echo "TIS620.2533 TIS-620"
235 #echo "sun_eu_greek ?" # what is this?
239 # FreeBSD 4.2 doesn't have nl_langinfo(CODESET); therefore
240 # localcharset.c falls back to using the full locale name
241 # from the environment variables.
242 # Likewise for OS/2. OS/2 has XFree86 just like FreeBSD. Just
243 # reuse FreeBSD's locale data for OS/2.
245 echo "US-ASCII ASCII"
246 for l
in la_LN lt_LN
; do
247 echo "$l.ASCII ASCII"
249 for l
in da_DK de_AT de_CH de_DE en_AU en_CA en_GB en_US es_ES \
250 fi_FI fr_BE fr_CA fr_CH fr_FR is_IS it_CH it_IT la_LN \
251 lt_LN nl_BE nl_NL no_NO pt_PT sv_SE
; do
252 echo "$l.ISO_8859-1 ISO-8859-1"
253 echo "$l.DIS_8859-15 ISO-8859-15"
255 for l
in cs_CZ hr_HR hu_HU la_LN lt_LN pl_PL sl_SI
; do
256 echo "$l.ISO_8859-2 ISO-8859-2"
258 for l
in la_LN lt_LT
; do
259 echo "$l.ISO_8859-4 ISO-8859-4"
261 for l
in ru_RU ru_SU
; do
262 echo "$l.KOI8-R KOI8-R"
263 echo "$l.ISO_8859-5 ISO-8859-5"
264 echo "$l.CP866 CP866"
266 echo "uk_UA.KOI8-U KOI8-U"
267 echo "zh_TW.BIG5 BIG5"
268 echo "zh_TW.Big5 BIG5"
269 echo "zh_CN.EUC GB2312"
270 echo "ja_JP.EUC EUC-JP"
271 echo "ja_JP.SJIS SHIFT_JIS"
272 echo "ja_JP.Shift_JIS SHIFT_JIS"
273 echo "ko_KR.EUC EUC-KR"
276 # BeOS has a single locale, and it has UTF-8 encoding.
280 # DJGPP 2.03 doesn't have nl_langinfo(CODESET); therefore
281 # localcharset.c falls back to using the full locale name
282 # from the environment variables.
284 echo "# The encodings given here may not all be correct."
285 echo "# If you find that the encoding given for your language and"
286 echo "# country is not the one your DOS machine actually uses, just"
287 echo "# correct it in this file, and send a mail to"
288 echo "# Juan Manuel Guerrero <st001906@hrz1.hrz.tu-darmstadt.de>"
289 echo "# and Bruno Haible <haible@clisp.cons.org>."
292 # ISO-8859-1 languages
295 echo "da CP865" # not CP850 ??
296 echo "da_DK CP865" # not CP850 ??
302 echo "en_AU CP850" # not CP437 ??
307 echo "en_ZA CP850" # not CP437 ??
345 echo "id CP850" # not CP437 ??
346 echo "id_ID CP850" # not CP437 ??
347 echo "is CP861" # not CP850 ??
348 echo "is_IS CP861" # not CP850 ??
356 echo "nb CP865" # not CP850 ??
357 echo "nb_NO CP865" # not CP850 ??
361 echo "nn CP865" # not CP850 ??
362 echo "nn_NO CP865" # not CP850 ??
363 echo "no CP865" # not CP850 ??
364 echo "no_NO CP865" # not CP850 ??
370 # ISO-8859-2 languages
387 echo "sr CP852" # CP852 or CP866 or CP855 ??
388 echo "sr_YU CP852" # CP852 or CP866 or CP855 ??
389 # ISO-8859-3 languages
392 # ISO-8859-5 languages
395 echo "bg CP866" # not CP855 ??
396 echo "bg_BG CP866" # not CP855 ??
397 echo "mk CP866" # not CP855 ??
398 echo "mk_MK CP866" # not CP855 ??
399 echo "ru KOI8-R" # not CP866 ??
400 echo "ru_RU KOI8-R" # not CP866 ??
401 # ISO-8859-6 languages
415 # ISO-8859-7 languages
418 # ISO-8859-8 languages
421 # ISO-8859-9 languages
429 echo "zh_TW CP950" # not CP938 ??
431 echo "kr CP949" # not CP934 ??
432 echo "kr_KR CP949" # not CP934 ??