From 2cfa2ea56602d3bb0465a46c0b144017b497b558 Mon Sep 17 00:00:00 2001 From: David Levine Date: Sat, 24 Sep 2016 10:42:58 -0400 Subject: [PATCH] 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. --- test/mhl/test-rfc6532 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 -- 2.56.0