2 # Copyright (C) 2000 Free Software Foundation, Inc.
3 # This file is part of the GNU C Library.
4 # Contributed by Bruno Haible <haible@clisp.cons.org>, 2000.
6 # The GNU C Library is free software; you can redistribute it and/or
7 # modify it under the terms of the GNU Library General Public License as
8 # published by the Free Software Foundation; either version 2 of the
9 # 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 # Library General Public License for more details.
16 # You should have received a copy of the GNU Library General Public
17 # License along with the GNU C Library; see the file COPYING.LIB. If not,
18 # write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19 # Boston, MA 02111-1307, USA.
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
68 #ISO-8859-11 No corresponding table, nonstandard
75 #ISO_6937-2 ISO-IR-90 Handling of combining marks is broken
157 ISO-IR-99 ANSI_X3.110-1983
158 ISO-IR-139 CSN_369103
162 ISO-IR-153 GOST_19768-74
169 ISO_2033 ISO_2033-1983
172 #ISO_5428 Handling of combining marks is broken
182 #ISIRI-3342 This charset concept is completely broken
184 # Multibyte encodings come here
189 #JOHAB No charmap exists
194 #GBK Converter uses private area characters
198 # Stateful encodings not testable this way
207 while read charset charmap
; do
208 if test "$charset" = GB18030
; then echo "This might take a while" 1>&2; fi
209 case ${charset} in \
#*) continue;; esac
210 echo -n "Testing ${charset}" 1>&2
211 if .
/tst-table.sh
${common_objpfx} ${objpfx} ${charset} ${charmap}; then
214 echo "failed: ./tst-table.sh ${common_objpfx} ${objpfx} ${charset} ${charmap}"
215 echo " *** FAILED ***" 1>&2