ISO-8859-16 has changed.
[libiconv.git] / tests / check-stateful
blobf68515aa234dc1b077468967af11803c813a22c7
1 #!/bin/sh
2 # Simple check of a stateful encoding.
3 # Usage: check-stateful SRCDIR CHARSET
4 srcdir="$1"
5 charset="$2"
6 set -e
7 ../src/iconv -f "$charset" -t UTF-8 < "${srcdir}"/"$charset"-snippet > tmp-snippet
8 cmp "${srcdir}"/"$charset"-snippet.UTF-8 tmp-snippet
9 ../src/iconv -f UTF-8 -t "$charset" < "${srcdir}"/"$charset"-snippet.UTF-8 > tmp-snippet
10 cmp "${srcdir}"/"$charset"-snippet tmp-snippet
11 rm -f tmp-snippet
12 exit 0