#!/bin/sh
#
# test scan(1) with multibytes

. $MH_TEST_COMMON

require_locale en_US.utf-8 en_US.utf8
LC_ALL=en_US.UTF-8
export LC_ALL


cat >"$MH_TEST_DIR/Mail/inbox/11" <<!
Subject: =?iso-8859-1?Q?Schl=FCssel?=
Mime-Version: 1.0
From: Bob <bob@example.org>
Date: Mon, 22 Sep 2014 01:17:05 +0200
Message-Id: <83C54147-7D2B-4B7F-9502-11C1EB9526BC@example.org>
To: Alice <alice@example.net>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
        charset=iso-8859-1

Hallo Alice,

hier ist dein Schl=FCssel, ich hoffe das Signieren hat funktioniert. =
Mein =F6ffentlicher Schl=FCssel liegt auf dem Keyserver.

Viele Gr=FC=DFe
Bob

!

runandcheck "scan 11 +inbox" <<!
  11  2014-09-22 01:17  Bob                Schlüssel
!


LC_ALL=C
unset MM_CHARSET
runandcheck "scan 11 +inbox" <<!
  11  2014-09-22 01:17  Bob                Schl?ssel
!
