From: David Levine Date: Sat, 24 Sep 2016 14:42:58 +0000 (-0400) Subject: Added incompatible locale test to test/mhl/test-rfc6532. It's X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/2cfa2ea56602d3bb0465a46c0b144017b497b558?ds=sidebyside;hp=4d19fdc6dedc121c6ef63bd646dc50d64a18f45d Added incompatible locale test to test/mhl/test-rfc6532. It's a placeholder to show that 8-bit header field values aren't properly handled if the locale is incompatible. --- diff --git a/test/mhl/test-rfc6532 b/test/mhl/test-rfc6532 index 41b858c6..34ebdc71 100755 --- a/test/mhl/test-rfc6532 +++ b/test/mhl/test-rfc6532 @@ -54,5 +54,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