Rework in the test framework; updated and new tests
[mmh] / test / tests / show / test-multibytes
1 #!/bin/sh
2 #
3 # test show(1) with multibytes
4
5 . $MH_TEST_COMMON
6
7 require_locale en_US.utf-8 en_US.utf8
8 LC_ALL=en_US.UTF-8
9 export LC_ALL
10
11
12 cat >"$MH_TEST_DIR/Mail/inbox/11" <<!
13 Subject: =?iso-8859-1?Q?Schl=FCssel?=
14 Mime-Version: 1.0
15 From: Bob <bob@example.org>
16 Date: Mon, 22 Sep 2014 01:17:05 +0200
17 Message-Id: <83C54147-7D2B-4B7F-9502-11C1EB9526BC@example.org>
18 To: Alice <alice@example.net>
19 Content-Transfer-Encoding: quoted-printable
20 Content-Type: text/plain;
21         charset=iso-8859-1
22
23 Hallo Alice,
24
25 hier ist dein Schl=FCssel, ich hoffe das Signieren hat funktioniert. =
26 Mein =F6ffentlicher Schl=FCssel liegt auf dem Keyserver.
27
28 Viele Gr=FC=DFe
29 Bob
30 !
31
32 runandcheck "show 11 +inbox" <<!
33 Date:    Mon, 22 Sep 2014 01:17:05 +0200
34 From:    Bob <bob@example.org>
35 To:      Alice <alice@example.net>
36 Subject: Schlüssel
37
38 part       text/plain                 151
39 Hallo Alice,
40
41 hier ist dein Schlüssel, ich hoffe das Signieren hat funktioniert. \
42 Mein öffentlicher Schlüssel liegt auf dem Keyserver.
43
44 Viele Grüße
45 Bob
46 !