Edit

thodg/libiconv/tests/check-stateful.bat

Branch :

  • Show log

    Commit

  • Author : Bruno Haible
    Date : 2012-06-30 17:28:51
    Hash : 47bec3b3
    Message : Improve ISO-2022-CP-MS versus CP932.

  • tests/check-stateful.bat
  • @ECHO OFF
    REM Simple check of a stateful encoding.
    REM Usage: check-stateful.bat SRCDIR CHARSET
    
    if not exist %1\%2-snippet.alt goto ENDIF_1
      ..\src\iconv_no_i18n -f %2 -t UTF-8 < %1\%2-snippet.alt > tmp-snippet
      fc %1\%2-snippet.UTF-8 tmp-snippet
    :ENDIF_1
    
    ..\src\iconv_no_i18n -f %2 -t UTF-8 < %1\%2-snippet > tmp-snippet
    fc %1\%2-snippet.UTF-8 tmp-snippet
    ..\src\iconv_no_i18n -f UTF-8 -t %2 < %1\%2-snippet.UTF-8 > tmp-snippet
    fc %1\%2-snippet tmp-snippet
    del tmp-snippet