summaryrefslogtreecommitdiff
path: root/jni/iconv/tests/check-stateful.bat
diff options
context:
space:
mode:
authorJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-16 18:49:26 +0900
committerJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-30 00:39:06 +0900
commitfcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch)
tree64cb17de3f41a2b6fef2368028fbd00349946994 /jni/iconv/tests/check-stateful.bat
Fresh start
Diffstat (limited to 'jni/iconv/tests/check-stateful.bat')
-rw-r--r--jni/iconv/tests/check-stateful.bat9
1 files changed, 9 insertions, 0 deletions
diff --git a/jni/iconv/tests/check-stateful.bat b/jni/iconv/tests/check-stateful.bat
new file mode 100644
index 0000000..b596e75
--- /dev/null
+++ b/jni/iconv/tests/check-stateful.bat
@@ -0,0 +1,9 @@
+@ECHO OFF
+REM Simple check of a stateful encoding.
+REM Usage: check-stateful.bat SRCDIR CHARSET
+
+..\src\iconv_no_i18n -f %2 -t UTF-8 < %1\%2-snippet > tmp-snippet
+fc %1\%2-snippet.UTF-8 tmp-snippet
+..\src\iconv_no_i18n -f UTF-8 -t %2 < %1\%2-snippet.UTF-8 > tmp-snippet
+fc %1\%2-snippet tmp-snippet
+del tmp-snippet