2 # Copyright (C) 2000-2023 Free Software Foundation, Inc.
3 # This file is part of the GNU C Library.
6 # The GNU C Library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Lesser General Public
8 # License as published by the Free Software Foundation; either
9 # version 2.1 of the License, or (at your option) any later version.
11 # The GNU C Library is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # Lesser General Public License for more details.
16 # You should have received a copy of the GNU Lesser General Public
17 # License along with the GNU C Library; if not, see
18 # <https://www.gnu.org/licenses/>.
20 # Checks that the iconv() implementation (in both directions) for the
21 # stateless encodings agrees with the corresponding charmap table.
25 test_program_prefix
=$3
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
150 #IBM1046 Differs from the AIX and JDK converters
182 ISO-IR-99 ANSI_X3.110-1983
183 ISO-IR-139 CSN_369103
187 ISO-IR-153 GOST_19768-74
194 ISO_2033 ISO_2033-1983
197 #ISO_5428 Handling of combining marks is broken
208 #ISIRI-3342 This charset concept is completely broken
225 # Multibyte encodings come here
229 #IBM932 This converter looks quite strange
230 #IBM943 This converter looks quite strange
245 # Stateful encodings not testable this way
261 while read charset charmap
; do
262 if test "$charset" = GB18030
; then echo "This might take a while" 1>&2; fi
263 case ${charset} in \
#*) continue;; esac
264 printf %s
"Testing ${charset}" 1>&2
265 if .
/tst-table.sh
${common_objpfx} ${objpfx} "${test_program_prefix}" \
266 ${charset} ${charmap} < /dev/null; then
269 echo "failed
: .
/tst-table.sh
${common_objpfx} ${objpfx} ${charset} ${charmap}"
270 echo " *** FAILED
***" 1>&2