4 * Complete check of a stateless encoding.
5 * Usage: check-stateless SRCDIR CHARSET
8 IF RxFuncQuery('SysLoadFuncs') THEN DO
9 CALL RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
15 PARSE ARG srcdir charset
17 '.\table-from 'charset' > tmp-'charset'.TXT'
18 '.\table-to 'charset' | sort > tmp-'charset'.INVERSE.TXT'
19 'cmp 'srcdir'\'charset'.TXT tmp-'charset'.TXT'
21 IF exists(srcdir'\'charset'.IRREVERSIBLE.TXT') = 1 THEN
23 'cat 'srcdir'\'charset'.TXT 'srcdir'\'charset'.IRREVERSIBLE.TXT | sort | uniq -u > tmp-orig-'charset'.INVERSE.TXT'
24 'cmp tmp-orig-'charset'.INVERSE.TXT tmp-'charset'.INVERSE.TXT'
28 'cmp 'srcdir'\'charset'.TXT tmp-'charset'.INVERSE.TXT'
31 'rm -f tmp-'charset'.TXT tmp-'charset'.INVERSE.TXT tmp-orig-'charset'.INVERSE.TXT'
36 * exists - check if file exists
40 IF STREAM(ARG(1), 'C', 'QUERY EXISTS') = '' THEN