]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-charset
That didnt work, so skip Encoded parameter value test on that buildbot.
[nmh] / test / mhshow / test-charset
index 914c76e57b593193bc174d03baf148fe3fd024a7..86729a6545a73f74895d3e98844946f92b536d71 100755 (executable)
@@ -82,7 +82,7 @@ From: foo@example.edu
 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
@@ -104,14 +104,15 @@ Content-Description: bogus quoted-printable data
 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'