]> diplodocus.org Git - nmh/blobdiff - test/mhl/test-rfc6532
netsec_set_tls(): Return a value in the !TLS_SUPPORT && !tls case.
[nmh] / test / mhl / test-rfc6532
index 41b858c6a4cd60995daaea55ab9f03e25a35e514..978f291aa26614d45b7938a17b59ed2cd60bd530 100755 (executable)
@@ -19,8 +19,7 @@ setup_test
 mhl="${MH_LIBEXEC_DIR}/mhl"
 
 #### 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
+require_locale en_US.UTF-8 en_US.UTF8 en_US.utf-8 en_US.utf8
 
 
 # check UTF-8 headers
@@ -54,5 +53,20 @@ Subject: Blåbærsyltetøy
 MIME-Version: 1.0'
 
 
+# check with incompatible locale
+# This is here as a place holder.  We should either try to run the (8-bit) text
+# through iconv, or refuse to display it if the locale is incompatible.  In the
+# case of EAI, that means not UTF-8.
+# start_test 'incompatible locale'
+# LC_ALL=C
+# run_test "$mhl -form mhl.headers `mhpath last`" \
+# 'Date:    20 May 2014 14:28:51 +0200
+# To:      recipientæ@example.com
+# From:    sender??@example.com
+# Subject: Bl??b??rsyltet??y
+#
+# MIME-Version: 1.0'
+
+
 finish_test
 exit $failed