diff options
author | Jari Vetoniemi <jari.vetoniemi@indooratlas.com> | 2020-03-16 18:49:26 +0900 |
---|---|---|
committer | Jari Vetoniemi <jari.vetoniemi@indooratlas.com> | 2020-03-30 00:39:06 +0900 |
commit | fcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch) | |
tree | 64cb17de3f41a2b6fef2368028fbd00349946994 /jni/iconv/tests/check-stateless.bat |
Fresh start
Diffstat (limited to 'jni/iconv/tests/check-stateless.bat')
-rw-r--r-- | jni/iconv/tests/check-stateless.bat | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/jni/iconv/tests/check-stateless.bat b/jni/iconv/tests/check-stateless.bat new file mode 100644 index 0000000..3950f2e --- /dev/null +++ b/jni/iconv/tests/check-stateless.bat @@ -0,0 +1,21 @@ +@ECHO OFF +REM Complete check of a stateless encoding. +REM Usage: check-stateless.bat SRCDIR CHARSET + +.\table-from %2 > tmp-%2.TXT +.\table-to %2 | sort > tmp-%2.INVERSE.TXT +fc %1\%2.TXT tmp-%2.TXT + +if not exist %1\%2.IRREVERSIBLE.TXT goto ELSE_1 + copy /a %1\%2.TXT /a + %1\%2.IRREVERSIBLE.TXT /a tmp + sort < tmp | uniq-u > tmp-orig-%2.INVERSE.TXT + fc tmp-orig-%2.INVERSE.TXT tmp-%2.INVERSE.TXT + del tmp + del tmp-orig-%2.INVERSE.TXT + goto ENDIF_1 +:ELSE_1 + fc %1\%2.TXT tmp-%2.INVERSE.TXT +:ENDIF_1 + +del tmp-%2.TXT +del tmp-%2.INVERSE.TXT |