diff options
Diffstat (limited to 'jni/iconv/tests/check-translit')
-rwxr-xr-x | jni/iconv/tests/check-translit | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/jni/iconv/tests/check-translit b/jni/iconv/tests/check-translit new file mode 100755 index 0000000..babc91e --- /dev/null +++ b/jni/iconv/tests/check-translit @@ -0,0 +1,12 @@ +#!/bin/sh +# Simple check of transliteration facilities. +# Usage: check-translit SRCDIR FILE FROMCODE TOCODE +srcdir="$1" +file="$2" +fromcode="$3" +tocode="$4" +set -e +../src/iconv_no_i18n -f "$fromcode" -t "$tocode"//TRANSLIT < "${srcdir}"/"$file"."$fromcode" > tmp +cmp "${srcdir}"/"$file"."$tocode" tmp +rm -f tmp +exit 0 |