--- embedaddon/libiconv/tests/check-subst 2012/02/21 22:57:48 1.1.1.1 +++ embedaddon/libiconv/tests/check-subst 2021/03/17 13:38:46 1.1.1.3 @@ -2,9 +2,6 @@ # Check of --unicode-subst, --byte-subst, --widechar-subst options. set -e iconv=../src/iconv_no_i18n -# Make sure the charset.alias file is found. -CHARSETALIASDIR=../lib -export CHARSETALIASDIR options_ascii='--unicode-subst= --byte-subst=<0x%02x> --widechar-subst=<%08x>' options_utf8='--unicode-subst=«U+%04X» --byte-subst=«0x%02x» --widechar-subst=«%08x»' @@ -52,6 +49,8 @@ Böse Bübchen EOF $iconv --byte-subst='<0x%010000x>' -f ASCII -t ASCII < tmp-in > tmp-out # This printf command crashes on Solaris 10. +# See . +# Likewise on OSF/1 5.1. if printf 'B<0x%010000x><0x%010000x>se B<0x%010000x><0x%010000x>bchen\n' 0xC3 0xB6 0xC3 0xBC > tmp-ok 2>/dev/null; then cmp tmp-out tmp-ok fi @@ -97,6 +96,7 @@ Böse Bübchen EOF $iconv --unicode-subst='' -f UTF-8 -t ASCII < tmp-in > tmp-out # This printf command crashes on Solaris 10. +# See . if printf 'Bse Bbchen\n' 0x00F6 0x00FC > tmp-ok 2>/dev/null; then cmp tmp-out tmp-ok fi @@ -106,6 +106,8 @@ Böse Bübchen EOF $iconv --byte-subst='<0x%010000x>' -f ASCII -t ASCII < tmp-in > tmp-out # This printf command crashes on Solaris 10. +# See . +# Likewise on OSF/1 5.1. if printf 'B<0x%010000x><0x%010000x>se B<0x%010000x><0x%010000x>bchen\n' 0xC3 0xB6 0xC3 0xBC > tmp-ok 2>/dev/null; then cmp tmp-out tmp-ok fi