unset MM_CHARSET in tests/scan/test-scan-multibyte
[mmh] / test / tests / scan / test-scan-multibyte
1 #!/bin/sh
2 #
3 # test scan(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
33 runandcheck "scan 11 +inbox" <<!
34   11  2014-09-22 01:17  Bob                Schlüssel
35 !
36
37
38 LC_ALL=C
39 unset MM_CHARSET
40 runandcheck "scan 11 +inbox" <<!
41   11  2014-09-22 01:17  Bob                Schl?ssel
42 !