2 # Copyright (C) 2000-2019 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 # <https://www.gnu.org/licenses/>.
21 # Checks that the iconv() implementation (in both directions) for the
22 # stateless encodings agrees with the corresponding charmap table.
26 test_program_prefix
=$3
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
77 #ISO_6937-2 ISO-IR-90 Handling of combining marks is broken
151 #IBM1046 Differs from the AIX and JDK converters
183 ISO-IR-99 ANSI_X3.110-1983
184 ISO-IR-139 CSN_369103
188 ISO-IR-153 GOST_19768-74
195 ISO_2033 ISO_2033-1983
198 #ISO_5428 Handling of combining marks is broken
209 #ISIRI-3342 This charset concept is completely broken
226 # Multibyte encodings come here
230 #IBM932 This converter looks quite strange
231 #IBM943 This converter looks quite strange
246 # Stateful encodings not testable this way
262 while read charset charmap
; do
263 if test "$charset" = GB18030
; then echo "This might take a while" 1>&2; fi
264 case ${charset} in \
#*) continue;; esac
265 printf %s
"Testing ${charset}" 1>&2
266 if .
/tst-table.sh
${common_objpfx} ${objpfx} "${test_program_prefix}" \
267 ${charset} ${charmap} < /dev/null; then
270 echo "failed
: .
/tst-table.sh
${common_objpfx} ${objpfx} ${charset} ${charmap}"
271 echo " *** FAILED
***" 1>&2