X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=test%2Fencoding;h=f0d073c586973dea5ff84a58e1f088012e14fd9c;hb=d379e3a0e23f3af9d8dece4bd21f9393d9f42249;hp=33259c1448fb8b0fc6b8943c2d9ceb1d81af661c;hpb=da9f39216555934327a91ebc6b3b726b0a989dcf;p=notmuch diff --git a/test/encoding b/test/encoding index 33259c14..f0d073c5 100755 --- a/test/encoding +++ b/test/encoding @@ -21,4 +21,12 @@ irrelevant body} message}" +test_begin_subtest "Search for ISO-8859-2 encoded message" +add_message '[content-type]="text/plain; charset=iso-8859-2"' \ + '[content-transfer-encoding]=8bit' \ + '[subject]="ISO-8859-2 encoded message"' \ + "[body]=$'Czech word tu\350\362\341\350\350\355 means pinguin\'s.'" # ISO-8859-2 characters are generated by shell's escape sequences +output=$(notmuch search tučňáččí 2>&1 | notmuch_show_sanitize) +test_expect_equal "$output" "thread:0000000000000002 2001-01-05 [1/1] Notmuch Test Suite; ISO-8859-2 encoded message (inbox unread)" + test_done