2 ######################################################
4 # Test charset conversion functionality
6 ######################################################
10 if test -z "${MH_OBJ_DIR}"; then
11 srcdir=`dirname "$0"`/../..
12 MH_OBJ_DIR=`cd "$srcdir" && pwd`; export MH_OBJ_DIR
15 . "$MH_OBJ_DIR/test/common.sh"
19 LC_ALL=en_US.UTF-8; export LC_ALL
21 test "$ICONV_ENABLED" -eq 0 && text_size=10 || text_size=11
23 expected=$MH_TEST_DIR/$$.expected
24 actual=$MH_TEST_DIR/$$.actual
26 echo 'mhshow-charset-windows-1252: echo "This is a test"' >> "$MH"
28 # Write message with bogus quoted-printable data.
30 msgnum=`basename $msgfile`
36 Content-Type: text/plain; charset=windows-1252
37 Content-Transfer-Encoding: quoted-printable
38 Date: Sun, 18 Dec 2005 00:52:39 +0100
44 Date: Sun, 18 Dec 2005 00:52:39 +0100
51 part text/plain $text_size
55 run_prog mhshow $msgnum > $actual 2>&1
56 check "$expected" "$actual"