2 # Copyright (C) 2000, 2001, 2002, 2003, 2004 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
22 # Checks that the iconv() implementation (in both directions) for the
23 # stateless encodings agrees with the corresponding charmap table.
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
37 ISO646-CA CSA_Z243.4-1985-1
38 ISO646-CA2 CSA_Z243.4-1985-2
45 ISO646-JP JIS_C6220-1969-RO
46 ISO646-JP-OCR-B JIS_C6229-1984-B
47 ISO646-YU JUS_I.B1.002
52 ISO646-FR1 NF_Z_62-010_1973
57 ISO646-SE SEN_850200_B
58 ISO646-SE2 SEN_850200_C
76 #ISO_6937-2 ISO-IR-90 Handling of combining marks is broken
145 #IBM1046 Differs from the AIX and JDK converters
172 ISO-IR-99 ANSI_X3.110-1983
173 ISO-IR-139 CSN_369103
177 ISO-IR-153 GOST_19768-74
184 ISO_2033 ISO_2033-1983
187 #ISO_5428 Handling of combining marks is broken
198 #ISIRI-3342 This charset concept is completely broken
211 # Multibyte encodings come here
215 #IBM932 This converter looks quite strange
216 #IBM943 This converter looks quite strange
231 # Stateful encodings not testable this way
247 while read charset charmap
; do
248 if test "$charset" = GB18030
; then echo "This might take a while" 1>&2; fi
249 case ${charset} in \
#*) continue;; esac
250 echo -n "Testing ${charset}" 1>&2
251 if ${SHELL} tst-table.sh ${common_objpfx} ${objpfx} ${charset} ${charmap}; then
254 echo "failed: ./tst-table.sh ${common_objpfx} ${objpfx} ${charset} ${charmap}"
255 echo " *** FAILED ***" 1>&2