2 # Simple check of a stateful encoding.
3 # Usage: check-stateful SRCDIR CHARSET
8 # charset, modified for use in filenames.
9 charsetf
=`echo "$charset" | sed -e 's,:,-,g'`
11 if test -f "${srcdir}"/"$charsetf"-snippet.alt
; then
12 ..
/src
/iconv_no_i18n
-f "$charset" -t UTF-8
< "${srcdir}"/"$charsetf"-snippet.alt
> tmp-snippet
13 cmp "${srcdir}"/"$charsetf"-snippet.UTF-8 tmp-snippet
15 ..
/src
/iconv_no_i18n
-f "$charset" -t UTF-8
< "${srcdir}"/"$charsetf"-snippet > tmp-snippet
16 cmp "${srcdir}"/"$charsetf"-snippet.UTF-8 tmp-snippet
17 ..
/src
/iconv_no_i18n
-f UTF-8
-t "$charset" < "${srcdir}"/"$charsetf"-snippet.UTF-8
> tmp-snippet
18 cmp "${srcdir}"/"$charsetf"-snippet tmp-snippet