Edit

thodg/libiconv/tests/check-stateful.cmd

Branch :

  • Show log

    Commit

  • Author : Bruno Haible
    Date : 2000-07-04 14:48:49
    Hash : 84b6a3e8
    Message : Support for OS/2 using emx+gcc.

  • tests/check-stateful.cmd
  • /*
     * check-stateful
     *
     *      Simple check of a stateful encoding.
     *      Usage: check-stateful SRCDIR CHARSET
     */
    
    IF RxFuncQuery('SysLoadFuncs') THEN DO
       CALL RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs'
       CALL SysLoadFuncs
    END
    
    '@echo off'
    
    PARSE ARG srcdir charset
    
    '.\iconv -f 'charset' -t UTF-8 < 'srcdir'\'charset'-snippet > tmp-snippet'
    'cmp 'srcdir'\'charset'-snippet.UTF-8 tmp-snippet'
    '.\iconv -f UTF-8 -t 'charset' < 'srcdir'\'charset'-snippet.UTF-8 > tmp-snippet'
    'cmp 'srcdir'\'charset'-snippet tmp-snippet'
    'rm -f tmp-snippet'
    
    EXIT