]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-charset
Fixed test-charset to pass without iconv.
[nmh] / test / mhshow / test-charset
index d0d8028bdca5ee0919723749f5d86c45730df00a..c41e51276cd8bbcf3303fc1d9604e08c6f3fa8eb 100755 (executable)
@@ -18,6 +18,8 @@ setup_test
 
 LC_ALL=en_US.UTF-8; export LC_ALL
 
 
 LC_ALL=en_US.UTF-8; export LC_ALL
 
+test "$ICONV_ENABLED" -eq 0  &&  text_size=10  || text_size=11
+
 expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
 expected=$MH_TEST_DIR/$$.expected
 actual=$MH_TEST_DIR/$$.actual
 
@@ -33,6 +35,7 @@ Subject: test
 MIME-Version: 1.0
 Content-Type: text/plain; charset=windows-1252
 Content-Transfer-Encoding: quoted-printable
 MIME-Version: 1.0
 Content-Type: text/plain; charset=windows-1252
 Content-Transfer-Encoding: quoted-printable
+Content-Description: bogus quoted-printable data
 Date: Sun, 18 Dec 2005 00:52:39 +0100
 
 4 =F7 2 =3D 2
 Date: Sun, 18 Dec 2005 00:52:39 +0100
 
 4 =F7 2 =3D 2
@@ -45,12 +48,13 @@ From:    foo@example.edu
 Subject: test
 
 MIME-Version: 1.0
 Subject: test
 
 MIME-Version: 1.0
+Content-Description: bogus quoted-printable data
 
 
-part       text/plain                  10
+[ part  - text/plain - bogus quoted-printable data  ${text_size}B  ]
 This is a test
 EOF
 
 This is a test
 EOF
 
-run_prog mhshow -nopause $msgnum > $actual 2>&1
+run_prog mhshow $msgnum > $actual 2>&1
 check "$expected" "$actual"
 
 exit $failed
 check "$expected" "$actual"
 
 exit $failed