Regenerated.
[libiconv.git] / tests / check-stateful.cmd
blob313f9eea5bf5005d9859093e6f2b0b7f71e77c97
1 /*
2 * check-stateful
4 * Simple check of a stateful encoding.
5 * Usage: check-stateful SRCDIR CHARSET
6 */
8 IF RxFuncQuery('SysLoadFuncs') THEN DO
9 CALL RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
10 CALL SysLoadFuncs
11 END
13 '@echo off'
15 PARSE ARG srcdir charset
17 '..\src\iconv --binary -f 'charset' -t UTF-8 < 'srcdir'\'charset'-snippet > tmp-snippet'
18 'cmp 'srcdir'\'charset'-snippet.UTF-8 tmp-snippet'
19 '..\src\iconv --binary -f UTF-8 -t 'charset' < 'srcdir'\'charset'-snippet.UTF-8 > tmp-snippet'
20 'cmp 'srcdir'\'charset'-snippet tmp-snippet'
21 'rm -f tmp-snippet'
23 EXIT