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.
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, see
19 # <http://www.gnu.org/licenses/>.
21 # Checks that the iconv() implementation (in both directions) for the
22 # stateless encodings agrees with the corresponding charmap table.
30 # Single-byte and other "small" encodings come here.
31 # Keep this list in the same order as gconv-modules.
33 # charset name table name comment
36 ISO646-CA CSA_Z243.4-1985-1
37 ISO646-CA2 CSA_Z243.4-1985-2
44 ISO646-JP JIS_C6220-1969-RO
45 ISO646-JP-OCR-B JIS_C6229-1984-B
46 ISO646-YU JUS_I.B1.002
51 ISO646-FR1 NF_Z_62-010_1973
56 ISO646-SE SEN_850200_B
57 ISO646-SE2 SEN_850200_C
76 #ISO_6937-2 ISO-IR-90 Handling of combining marks is broken
149 #IBM1046 Differs from the AIX and JDK converters
181 ISO-IR-99 ANSI_X3.110-1983
182 ISO-IR-139 CSN_369103
186 ISO-IR-153 GOST_19768-74
193 ISO_2033 ISO_2033-1983
196 #ISO_5428 Handling of combining marks is broken
207 #ISIRI-3342 This charset concept is completely broken
224 # Multibyte encodings come here
228 #IBM932 This converter looks quite strange
229 #IBM943 This converter looks quite strange
244 # Stateful encodings not testable this way
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
267 echo "failed: ./tst-table.sh ${common_objpfx} ${objpfx} ${charset} ${charmap}"
268 echo " *** FAILED ***" 1>&2