From: David Levine Date: Wed, 21 Sep 2016 15:54:49 +0000 (-0400) Subject: Added test/mhl/test-rfc6532. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/9ab501a3e56386193190677b4d8a13a755b1cd1c?ds=sidebyside Added test/mhl/test-rfc6532. --- diff --git a/Makefile.am b/Makefile.am index 616d7dd8..0db9cfb5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -78,7 +78,7 @@ TESTS = test/ali/test-ali test/anno/test-anno \ test/mhbuild/test-forw test/mhbuild/test-header-encode \ test/mhbuild/test-utf8-body \ test/mhfixmsg/test-mhfixmsg test/mhical/test-mhical \ - test/mhl/test-mhl-flags \ + test/mhl/test-mhl-flags test/mhl/test-rfc6532 \ test/mhlist/test-mhlist test/mhlist/test-ext-params \ test/mhmail/test-mhmail \ test/mhparam/test-mhparam test/mhpath/test-mhpath \ diff --git a/test/mhl/test-rfc6532 b/test/mhl/test-rfc6532 new file mode 100755 index 00000000..fb986044 --- /dev/null +++ b/test/mhl/test-rfc6532 @@ -0,0 +1,55 @@ +#!/bin/sh +###################################################### +# +# Test compatibility with RFC 6532, Internationalized +# Email Headers +# +###################################################### + +set -e + +if test -z "${MH_OBJ_DIR}"; then + srcdir=`dirname $0`/../.. + MH_OBJ_DIR=`cd $srcdir && pwd`; export MH_OBJ_DIR +fi + +. "${MH_OBJ_DIR}/test/common.sh" + +setup_test + +#### Make sure that html-to-text conversion is what we expect. +require_locale en_US.utf-8 en_US.utf8 +LC_ALL=en_US.UTF-8; export LC_ALL + + +# check UTF-8 headers +start_test 'UTF-8 headers' +cat >"$MH_TEST_DIR"/Mail/inbox/11 <