2 REM Simple check of a stateful encoding.
3 REM Usage: check-stateful.bat SRCDIR CHARSET
5 ..\src\iconv --binary -f %2 -t UTF-8 < %1\%2-snippet > tmp-snippet
6 fc %1\%2-snippet.UTF-8 tmp-snippet
7 ..\src\iconv --binary -f UTF-8 -t %2 < %1\%2-snippet.UTF-8 > tmp-snippet
8 fc %1\%2-snippet tmp-snippet