Mercurial > hg > octave-nkf > gnulib-hg
annotate lib/config.charset @ 2363:d8560a113c40
Output a line containing "Packages using this file".
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Fri, 24 Mar 2000 06:40:23 +0000 |
parents | 12ab2a810b6d |
children | 847608b4c70d |
rev | line source |
---|---|
2307 | 1 #! /bin/sh |
2 # Output a system dependent table of character encoding aliases. | |
3 # | |
4 # Copyright (C) 2000 Free Software Foundation, Inc. | |
5 # | |
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) | |
9 # any later version. | |
10 # | |
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. | |
15 # | |
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, | |
19 # USA. | |
20 # | |
21 # The table consists of lines of the form | |
22 # ALIAS CANONICAL | |
23 # | |
24 # ALIAS is the (system dependent) result of "nl_langinfo (CODESET)". | |
25 # ALIAS is compared in a case sensitive way. | |
26 # | |
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. | |
32 # | |
2323
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
33 # name used by which systems a MIME name? |
2307 | 34 # ASCII glibc solaris |
2323
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
35 # ISO-8859-1 glibc aix hpux irix osf solaris yes |
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
36 # ISO-8859-2 glibc aix hpux irix solaris yes |
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
37 # ISO-8859-4 solaris yes |
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
38 # ISO-8859-5 glibc aix hpux irix solaris yes |
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
39 # ISO-8859-6 aix hpux solaris yes |
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
40 # ISO-8859-7 glibc aix hpux irix osf solaris yes |
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
41 # ISO-8859-8 glibc aix hpux solaris yes |
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
42 # ISO-8859-9 glibc aix hpux irix osf solaris yes |
2307 | 43 # ISO-8859-13 glibc |
44 # ISO-8859-15 aix solaris | |
2323
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
45 # KOI8-R glibc solaris yes |
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
46 # KOI8-U glibc yes |
2307 | 47 # CP850 aix osf |
48 # CP856 aix | |
49 # CP922 aix | |
50 # CP932 aix | |
51 # CP943 aix | |
52 # CP1046 aix | |
53 # CP1124 aix | |
54 # CP1129 aix | |
55 # CP1252 aix | |
56 # EUC-CN aix hpux solaris | |
2323
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
57 # EUC-JP aix hpux solaris yes |
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
58 # EUC-KR aix hpux solaris yes |
2307 | 59 # EUC-TW aix hpux solaris |
2323
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
60 # BIG5 aix hpux solaris yes |
2307 | 61 # GBK aix |
62 # SJIS hpux solaris | |
63 # TIS-620 aix hpux solaris | |
64 # HP-ROMAN8 hpux | |
65 # HP-ARABIC8 hpux | |
66 # HP-GREEK8 hpux | |
67 # HP-HEBREW8 hpux | |
68 # HP-TURKISH8 hpux | |
69 # HP-KANA8 hpux | |
2323
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
70 # UTF-8 glibc aix hpux solaris yes |
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
71 # |
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
72 # Note: Names which are not marked as being a MIME name should not be used in |
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
73 # Internet protocols for information interchange (mail, news, etc.). |
2307 | 74 # |
75 # The first argument passed to this file is the canonical host specification, | |
76 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | |
77 # or | |
78 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM | |
79 | |
80 host="$1" | |
81 os=`echo "$host" | sed -e 's/^[^-]*-[^-]*-\(.*\)$/\1/'` | |
82 echo "# This file contains a table of character encoding aliases," | |
83 echo "# suitable for operating system '${os}'." | |
84 echo "# It was automatically generated from config.charset." | |
2363
d8560a113c40
Output a line containing "Packages using this file".
Jim Meyering <jim@meyering.net>
parents:
2323
diff
changeset
|
85 # List of references, updated during installation: |
d8560a113c40
Output a line containing "Packages using this file".
Jim Meyering <jim@meyering.net>
parents:
2323
diff
changeset
|
86 echo "# Packages using this file: " |
2307 | 87 case "$os" in |
88 linux* | *-gnu*) | |
89 # With glibc we don't need any canonicalization, because glibc | |
90 # supports all GNU canonical names directly. | |
91 echo "ANSI_X3.4-1968 ASCII" # this is a nop | |
92 echo "ISO_646.IRV:1983 ASCII" # this is a nop | |
93 echo "BALTIC ISO-8859-13" # in glibc-2.2 or newer, this is a nop | |
94 ;; | |
95 aix*) | |
96 echo "ISO8859-1 ISO-8859-1" | |
97 echo "ISO8859-2 ISO-8859-2" | |
98 echo "ISO8859-5 ISO-8859-5" | |
99 echo "ISO8859-6 ISO-8859-6" | |
100 echo "ISO8859-7 ISO-8859-7" | |
101 echo "ISO8859-8 ISO-8859-8" | |
102 echo "ISO8859-9 ISO-8859-9" | |
103 echo "ISO8859-15 ISO-8859-15" | |
104 echo "IBM-850 CP850" | |
105 echo "IBM-856 CP856" | |
2323
12ab2a810b6d
New version, incorporating remarks from a linux
Jim Meyering <jim@meyering.net>
parents:
2307
diff
changeset
|
106 echo "IBM-921 ISO-8859-13" |
2307 | 107 echo "IBM-922 CP922" |
108 echo "IBM-932 CP932" | |
109 echo "IBM-943 CP943" | |
110 echo "IBM-1046 CP1046" | |
111 echo "IBM-1124 CP1124" | |
112 echo "IBM-1129 CP1129" | |
113 echo "IBM-1252 CP1252" | |
114 echo "IBM-eucCN EUC-CN" | |
115 echo "IBM-eucJP EUC-JP" | |
116 echo "IBM-eucKR EUC-KR" | |
117 echo "IBM-eucTW EUC-TW" | |
118 echo "big5 BIG5" | |
119 echo "GBK GBK" | |
120 echo "TIS-620 TIS-620" | |
121 echo "UTF-8 UTF-8" | |
122 ;; | |
123 hpux*) | |
124 echo "iso88591 ISO-8859-1" | |
125 echo "iso88592 ISO-8859-2" | |
126 echo "iso88595 ISO-8859-5" | |
127 echo "iso88596 ISO-8859-6" | |
128 echo "iso88597 ISO-8859-7" | |
129 echo "iso88598 ISO-8859-8" | |
130 echo "iso88599 ISO-8859-9" | |
131 echo "roman8 HP-ROMAN8" | |
132 echo "arabic8 HP-ARABIC8" | |
133 echo "greek8 HP-GREEK8" | |
134 echo "hebrew8 HP-HEBREW8" | |
135 echo "turkish8 HP-TURKISH8" | |
136 echo "kana8 HP-KANA8" | |
137 echo "tis620 TIS-620" | |
138 echo "big5 BIG5" | |
139 echo "eucJP EUC-JP" | |
140 echo "eucKR EUC-KR" | |
141 echo "eucTW EUC-TW" | |
142 echo "hp15CN EUC-CN" | |
143 #echo "ccdc ?" # what is this? | |
144 echo "SJIS SJIS" | |
145 echo "utf8 UTF-8" | |
146 ;; | |
147 irix*) | |
148 echo "ISO8859-1 ISO-8859-1" | |
149 echo "ISO8859-2 ISO-8859-2" | |
150 echo "ISO8859-5 ISO-8859-5" | |
151 echo "ISO8859-7 ISO-8859-7" | |
152 echo "ISO8859-9 ISO-8859-9" | |
153 ;; | |
154 osf*) | |
155 echo "ISO8859-1 ISO-8859-1" | |
156 echo "ISO8859-7 ISO-8859-7" | |
157 echo "ISO8859-9 ISO-8859-9" | |
158 echo "cp850 CP850" | |
159 ;; | |
160 solaris*) | |
161 echo "646 ASCII" | |
162 echo "ISO8859-1 ISO-8859-1" | |
163 echo "ISO8859-2 ISO-8859-2" | |
164 echo "ISO8859-4 ISO-8859-4" | |
165 echo "ISO8859-5 ISO-8859-5" | |
166 echo "ISO8859-6 ISO-8859-6" | |
167 echo "ISO8859-7 ISO-8859-7" | |
168 echo "ISO8859-8 ISO-8859-8" | |
169 echo "ISO8859-9 ISO-8859-9" | |
170 echo "ISO8859-15 ISO-8859-15" | |
171 echo "koi8-r KOI8-R" | |
172 echo "BIG5 BIG5" | |
173 echo "gb2312 EUC-CN" | |
174 echo "cns11643 EUC-TW" | |
175 echo "5601 EUC-KR" | |
176 echo "eucJP EUC-JP" | |
177 echo "PCK SJIS" | |
178 echo "TIS620.2533 TIS-620" | |
179 #echo "sun_eu_greek ?" # what is this? | |
180 echo "UTF-8 UTF-8" | |
181 ;; | |
182 esac |