From: Timo Sirainen Date: Wed, 13 Jan 2021 17:17:18 +0000 (+0200) Subject: lib-imap: test-imap-utf7 - Improve/clarify testing '&' X-Git-Tag: 2.3.14.rc1~60 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=02f35f281eca7d4a860f59a610c79bdaf26fb2c5;p=thirdparty%2Fdovecot%2Fcore.git lib-imap: test-imap-utf7 - Improve/clarify testing '&' & is never base64-encoded. --- diff --git a/src/lib-imap/test-imap-utf7.c b/src/lib-imap/test-imap-utf7.c index 96a17913c8..315b19d432 100644 --- a/src/lib-imap/test-imap-utf7.c +++ b/src/lib-imap/test-imap-utf7.c @@ -15,12 +15,12 @@ static void test_imap_utf7_by_example(void) { "&&x&&", "&-&-x&-&-" }, { "~peter/mail/\xe5\x8f\xb0\xe5\x8c\x97/\xe6\x97\xa5\xe6\x9c\xac\xe8\xaa\x9e", "~peter/mail/&U,BTFw-/&ZeVnLIqe-" }, - { "tiet\xc3\xa4j\xc3\xa4", "tiet&AOQ-j&AOQ-" }, + { "tiet\xc3\xa4&j\xc3\xa4&", "tiet&AOQ-&-j&AOQ-&-" }, /* & is always encoded as &- */ { "p\xe4\xe4", NULL }, { NULL, "&" }, { NULL, "&Jjo" }, { NULL, "&Jjo!" }, - { NULL, "&U,BTFw-&ZeVnLIqe-" } + { NULL, "&U,BTFw-&ZeVnLIqe-" } /* unnecessary shift */ }; string_t *dest; unsigned int i;