patch-test_test-iconv_sh 660 B

12345678910111213
  1. $OpenBSD: patch-test_test-iconv_sh,v 1.2 2016/01/08 21:18:41 jasper Exp $
  2. --- test/test-iconv.sh.orig Mon Jan 4 19:12:05 2016
  3. +++ test/test-iconv.sh Fri Jan 8 22:17:39 2016
  4. @@ -23,7 +23,7 @@ if $ENCA --list converters | grep '^iconv$' >/dev/null
  5. diff $TEST_TEXT $TESTNAME.actual || DIE=1
  6. # One copy doesn't contain enough characters to overweight the noise
  7. cat $TESTNAME.tmp $TESTNAME.tmp $TESTNAME.tmp >$TESTNAME.actual
  8. - echo 'č' >>$TESTNAME.actual
  9. + perl -i -pe 's/$/\xe8\n/' $TESTNAME.actual
  10. cat $TESTNAME.actual >$TESTNAME.tmp
  11. $ENCA $OPTS -x ISO-8859-2 $TESTNAME.tmp 2>/dev/null && DIE=1
  12. diff $TESTNAME.tmp $TESTNAME.actual || DIE=1