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