2 # Simple check of a stateful encoding.
3 # Usage: check-stateful SRCDIR CHARSET
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