emsApplication/3rdPartner/libiconv/tests/check-translitfailure

11 lines
296 B
Plaintext
Raw Normal View History

2024-05-24 12:19:45 +08:00
#!/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 $?