|
|
| version 1.1.1.1, 2012/02/21 22:57:48 | version 1.1.1.3, 2021/03/17 13:38:46 |
|---|---|
| Line 2 | Line 2 |
| # Check of --unicode-subst, --byte-subst, --widechar-subst options. | # Check of --unicode-subst, --byte-subst, --widechar-subst options. |
| set -e | set -e |
| iconv=../src/iconv_no_i18n | iconv=../src/iconv_no_i18n |
| # Make sure the charset.alias file is found. | |
| CHARSETALIASDIR=../lib | |
| export CHARSETALIASDIR | |
| options_ascii='--unicode-subst=<U+%04X> --byte-subst=<0x%02x> --widechar-subst=<%08x>' | options_ascii='--unicode-subst=<U+%04X> --byte-subst=<0x%02x> --widechar-subst=<%08x>' |
| options_utf8='--unicode-subst=«U+%04X» --byte-subst=«0x%02x» --widechar-subst=«%08x»' | options_utf8='--unicode-subst=«U+%04X» --byte-subst=«0x%02x» --widechar-subst=«%08x»' |
| Line 52 Böse Bübchen | Line 49 Böse Bübchen |
| EOF | EOF |
| $iconv --byte-subst='<0x%010000x>' -f ASCII -t ASCII < tmp-in > tmp-out | $iconv --byte-subst='<0x%010000x>' -f ASCII -t ASCII < tmp-in > tmp-out |
| # This printf command crashes on Solaris 10. | # This printf command crashes on Solaris 10. |
| # See <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6550204>. | |
| # 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 | 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 | cmp tmp-out tmp-ok |
| fi | fi |
| Line 97 Böse Bübchen | Line 96 Böse Bübchen |
| EOF | EOF |
| $iconv --unicode-subst='<U+%010000X>' -f UTF-8 -t ASCII < tmp-in > tmp-out | $iconv --unicode-subst='<U+%010000X>' -f UTF-8 -t ASCII < tmp-in > tmp-out |
| # This printf command crashes on Solaris 10. | # This printf command crashes on Solaris 10. |
| # See <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6550204>. | |
| if printf 'B<U+%010000X>se B<U+%010000X>bchen\n' 0x00F6 0x00FC > tmp-ok 2>/dev/null; then | if printf 'B<U+%010000X>se B<U+%010000X>bchen\n' 0x00F6 0x00FC > tmp-ok 2>/dev/null; then |
| cmp tmp-out tmp-ok | cmp tmp-out tmp-ok |
| fi | fi |
| Line 106 Böse Bübchen | Line 106 Böse Bübchen |
| EOF | EOF |
| $iconv --byte-subst='<0x%010000x>' -f ASCII -t ASCII < tmp-in > tmp-out | $iconv --byte-subst='<0x%010000x>' -f ASCII -t ASCII < tmp-in > tmp-out |
| # This printf command crashes on Solaris 10. | # This printf command crashes on Solaris 10. |
| # See <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6550204>. | |
| # 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 | 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 | cmp tmp-out tmp-ok |
| fi | fi |