Edit

thodg/libiconv/tests/check-translit

Branch :

  • Show log

    Commit

  • Author : Bruno Haible
    Date : 2000-11-20 18:26:50
    Hash : fdd8e49f
    Message : Transliteration is now off by default.

  • tests/check-translit
  • #!/bin/sh
    # Simple check of transliteration facilities.
    # Usage: check-translit SRCDIR FILE FROMCODE TOCODE
    srcdir="$1"
    file="$2"
    fromcode="$3"
    tocode="$4"
    set -e
    ./iconv -f "$fromcode" -t "$tocode"//TRANSLIT < "${srcdir}"/"$file"."$fromcode" > tmp
    cmp "${srcdir}"/"$file"."$tocode" tmp
    rm -f tmp
    exit 0