Remove pre-2.4 Linux kernel support.
[platform/upstream/glibc.git] / iconvdata / tst-tables.sh
1 #!/bin/sh
2 # Copyright (C) 2000-2004,2007,2011 Free Software Foundation, Inc.
3 # This file is part of the GNU C Library.
4 # Contributed by Bruno Haible <haible@clisp.cons.org>, 2000.
5 #
6
7 # The GNU C Library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
11
12 # The GNU C Library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 # Lesser General Public License for more details.
16
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with the GNU C Library; if not, see
19 # <http://www.gnu.org/licenses/>.
20
21 # Checks that the iconv() implementation (in both directions) for the
22 # stateless encodings agrees with the corresponding charmap table.
23
24 common_objpfx=$1
25 objpfx=$2
26
27 status=0
28
29 cat <<EOF |
30   # Single-byte and other "small" encodings come here.
31   # Keep this list in the same order as gconv-modules.
32   #
33   # charset name    table name          comment
34   ASCII             ANSI_X3.4-1968
35   ISO646-GB         BS_4730
36   ISO646-CA         CSA_Z243.4-1985-1
37   ISO646-CA2        CSA_Z243.4-1985-2
38   ISO646-DE         DIN_66003
39   ISO646-DK         DS_2089
40   ISO646-ES         ES
41   ISO646-ES2        ES2
42   ISO646-CN         GB_1988-80
43   ISO646-IT         IT
44   ISO646-JP         JIS_C6220-1969-RO
45   ISO646-JP-OCR-B   JIS_C6229-1984-B
46   ISO646-YU         JUS_I.B1.002
47   ISO646-KR         KSC5636
48   ISO646-HU         MSZ_7795.3
49   ISO646-CU         NC_NC00-10
50   ISO646-FR         NF_Z_62-010
51   ISO646-FR1        NF_Z_62-010_1973
52   ISO646-NO         NS_4551-1
53   ISO646-NO2        NS_4551-2
54   ISO646-PT         PT
55   ISO646-PT2        PT2
56   ISO646-SE         SEN_850200_B
57   ISO646-SE2        SEN_850200_C
58   ISO-8859-1
59   ISO-8859-2
60   ISO-8859-3
61   ISO-8859-4
62   ISO-8859-5
63   ISO-8859-6
64   ISO-8859-7
65   ISO-8859-8
66   ISO-8859-9
67   ISO-8859-9E
68   ISO-8859-10
69   ISO-8859-11
70   ISO-8859-13
71   ISO-8859-14
72   ISO-8859-15
73   ISO-8859-16
74   T.61-8BIT
75   ISO_6937
76   #ISO_6937-2        ISO-IR-90          Handling of combining marks is broken
77   KOI-8
78   KOI8-R
79   LATIN-GREEK
80   LATIN-GREEK-1
81   HP-ROMAN8
82   HP-ROMAN9
83   HP-TURKISH8
84   HP-THAI8
85   HP-GREEK8
86   EBCDIC-AT-DE
87   EBCDIC-AT-DE-A
88   EBCDIC-CA-FR
89   EBCDIC-DK-NO
90   EBCDIC-DK-NO-A
91   EBCDIC-ES
92   EBCDIC-ES-A
93   EBCDIC-ES-S
94   EBCDIC-FI-SE
95   EBCDIC-FI-SE-A
96   EBCDIC-FR
97   EBCDIC-IS-FRISS
98   EBCDIC-IT
99   EBCDIC-PT
100   EBCDIC-UK
101   EBCDIC-US
102   IBM037
103   IBM038
104   IBM256
105   IBM273
106   IBM274
107   IBM275
108   IBM277
109   IBM278
110   IBM280
111   IBM281
112   IBM284
113   IBM285
114   IBM290
115   IBM297
116   IBM420
117   IBM423
118   IBM424
119   IBM437
120   IBM500
121   IBM850
122   IBM851
123   IBM852
124   IBM855
125   IBM856
126   IBM857
127   IBM860
128   IBM861
129   IBM862
130   IBM863
131   IBM864
132   IBM865
133   IBM866
134   IBM866NAV
135   IBM868
136   IBM869
137   IBM870
138   IBM871
139   IBM875
140   IBM880
141   IBM891
142   IBM903
143   IBM904
144   IBM905
145   IBM918
146   IBM922
147   IBM1004
148   IBM1026
149   #IBM1046                              Differs from the AIX and JDK converters
150   IBM1047
151   IBM1124
152   IBM1129
153   IBM1160
154   IBM1161
155   IBM1132
156   IBM1133
157   IBM1162
158   IBM1163
159   IBM1164
160   CP1125
161   CP1250
162   CP1251
163   CP1252
164   CP1253
165   CP1254
166   CP1255
167   CP1256
168   CP1257
169   CP1258
170   IBM874
171   CP737
172   CP770
173   CP771
174   CP772
175   CP773
176   CP774
177   CP775
178   MACINTOSH
179   IEC_P27-1
180   ASMO_449
181   ISO-IR-99         ANSI_X3.110-1983
182   ISO-IR-139        CSN_369103
183   CWI
184   DEC-MCS
185   ECMA-CYRILLIC
186   ISO-IR-153        GOST_19768-74
187   GREEK-CCITT
188   GREEK7
189   GREEK7-OLD
190   INIS
191   INIS-8
192   INIS-CYRILLIC
193   ISO_2033          ISO_2033-1983
194   ISO_5427
195   ISO_5427-EXT
196   #ISO_5428                             Handling of combining marks is broken
197   ISO_10367-BOX
198   MAC-IS
199   MAC-UK
200   CP10007
201   NATS-DANO
202   NATS-SEFI
203   WIN-SAMI-2        SAMI-WS2
204   ISO-IR-197
205   TIS-620
206   KOI8-U
207   #ISIRI-3342                         This charset concept is completely broken
208   VISCII
209   KOI8-T
210   GEORGIAN-PS
211   GEORGIAN-ACADEMY
212   ISO-IR-209
213   MAC-SAMI
214   ARMSCII-8
215   TCVN5712-1
216   TSCII
217   PT154
218   RK1048
219   MIK
220   BRF
221   MAC-CENTRALEUROPE
222   KOI8-RU
223   #
224   # Multibyte encodings come here
225   #
226   SJIS              SHIFT_JIS
227   CP932             WINDOWS-31J
228   #IBM932                               This converter looks quite strange
229   #IBM943                               This converter looks quite strange
230   EUC-KR
231   CP949
232   JOHAB
233   BIG5
234   BIG5HKSCS         BIG5-HKSCS
235   EUC-JP
236   EUC-JP-MS
237   EUC-CN            GB2312
238   GBK
239   EUC-TW
240   GB18030
241   EUC-JISX0213
242   SHIFT_JISX0213
243   #
244   # Stateful encodings not testable this way
245   #
246   #IBM930
247   #IBM933
248   #IBM935
249   #IBM937
250   #IBM939
251   #ISO-2022-JP
252   #ISO-2022-JP-2
253   #ISO-2022-JP-3
254   #ISO-2022-KR
255   #ISO-2022-CN
256   #ISO-2022-CN-EXT
257   #UTF-7
258   #
259 EOF
260 while read charset charmap; do
261   if test "$charset" = GB18030; then echo "This might take a while" 1>&2; fi
262   case ${charset} in \#*) continue;; esac
263   echo -n "Testing ${charset}" 1>&2
264   if ${SHELL} tst-table.sh ${common_objpfx} ${objpfx} ${charset} ${charmap}; then
265     echo 1>&2
266   else
267     echo "failed: ./tst-table.sh ${common_objpfx} ${objpfx} ${charset} ${charmap}"
268     echo " *** FAILED ***" 1>&2
269     exit 1
270   fi
271 done
272
273 exit $?