]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
rfc2047: add tests for us-ascii
authorBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 8 Jan 2025 13:12:22 +0000 (14:12 +0100)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Wed, 8 Jan 2025 13:12:22 +0000 (14:12 +0100)
tests/mlmmj.c

index ac8a15b3281ae8c8437e0f47de618e83282e26ff..7bc005275cf548a5b5fd5ecb6daf56c1ba8cf2c9 100644 (file)
@@ -3000,6 +3000,9 @@ ATF_TC_BODY(unistr_header_to_utf8, tc)
     ATF_REQUIRE(out != NULL);
     ATF_REQUIRE_STREQ(out, "Привет мир");
 
+    out = unistr_header_to_utf8("=?us-ascii?Q?useless_but_why_not?=");
+    ATF_REQUIRE(out != NULL);
+    ATF_REQUIRE_STREQ(out, "useless but why not");
 }
 
 ATF_TP_ADD_TCS(tp)