summaryrefslogtreecommitdiff
path: root/jni/iconv/tests/check-translitfailure
blob: 37dd86e0d2df1940f08ea48721e269146f3358d4 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# Simple check of transliteration failure.
# Usage: check-translitfailure SRCDIR FILE FROMCODE TOCODE
srcdir="$1"
file="$2"
fromcode="$3"
tocode="$4"
../src/iconv_no_i18n -f "$fromcode" -t "$tocode"//TRANSLIT < "${srcdir}"/"$file"."$fromcode" >/dev/null 2>/dev/null
test $? = 1
exit $?