2 # Copyright (C) 2000, 2001 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
69 #ISO-8859-11 No corresponding table, nonstandard
76 #ISO_6937-2 ISO-IR-90 Handling of combining marks is broken
159 ISO-IR-99 ANSI_X3.110-1983
160 ISO-IR-139 CSN_369103
164 ISO-IR-153 GOST_19768-74
171 ISO_2033 ISO_2033-1983
174 #ISO_5428 Handling of combining marks is broken
190 #ISIRI-3342 This charset concept is completely broken
192 # Multibyte encodings come here
206 # Stateful encodings not testable this way
216 while read charset charmap
; do
217 if test "$charset" = GB18030
; then echo "This might take a while" 1>&2; fi
218 case ${charset} in \
#*) continue;; esac
219 echo -n "Testing ${charset}" 1>&2
220 if ${SHELL} tst-table.sh ${common_objpfx} ${objpfx} ${charset} ${charmap}; then
223 echo "failed: ./tst-table.sh ${common_objpfx} ${objpfx} ${charset} ${charmap}"
224 echo " *** FAILED ***" 1>&2