Edit

thodg/libiconv/tests/check-stateful

Branch :

  • Show log

    Commit

  • Author : Bruno Haible
    Date : 2002-05-29 14:09:04
    Hash : 485041c8
    Message : Tricky "make install", due to dependencies iconv -> libintl -> libiconv.

  • tests/check-stateful
  • #!/bin/sh
    # Simple check of a stateful encoding.
    # Usage: check-stateful SRCDIR CHARSET
    srcdir="$1"
    charset="$2"
    set -e
    ../src/iconv_no_i18n -f "$charset" -t UTF-8 < "${srcdir}"/"$charset"-snippet > tmp-snippet
    cmp "${srcdir}"/"$charset"-snippet.UTF-8 tmp-snippet
    ../src/iconv_no_i18n -f UTF-8 -t "$charset" < "${srcdir}"/"$charset"-snippet.UTF-8 > tmp-snippet
    cmp "${srcdir}"/"$charset"-snippet tmp-snippet
    rm -f tmp-snippet
    exit 0