To: bar@example.edu
Subject: test
MIME-Version: 1.0
-Content-Type: text/plain; charset*=UTF-16''%55%54%46%2d%38
+Content-Type: text/plain; charset*=EBCDIC-US''%e4%e3%c6%60%f8
Content-Transfer-Encoding: quoted-printable
Content-Description: bogus quoted-printable data
Date: Sun, 18 Dec 2005 00:52:39 +0100
4 รท 2 = 2
EOF
-#### for debugging:
-echo locales:
-locale -a | cat
-echo charsets:
-iconv -l | cat
-####
-run_prog mhshow $msgnum > $actual 2>&1
-check "$expected" "$actual" : encoded parameter value
+if test "$ICONV_ENABLED" -eq 1; then
+ if iconv -l | grep EBCDIC-US >/dev/null; then
+ #### For unknown reasons, this test fails on the FreeBSD10
+ #### buildbot. It doesn't support EBCDIC-US, so skip it
+ #### on that bot.
+ run_prog mhshow $msgnum > $actual 2>&1
+ check "$expected" "$actual" : encoded parameter value
+ fi
+fi
start_test 'replacement character in parameter value'