X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/afee8ed17a56617618fb7f963b111d7cf0fb56e7..d5e78944632398a4e31bca0c43cb4df3b30b1640:/test/scan/test-scan-multibyte?ds=sidebyside diff --git a/test/scan/test-scan-multibyte b/test/scan/test-scan-multibyte index 1e9349a0..819c34c0 100755 --- a/test/scan/test-scan-multibyte +++ b/test/scan/test-scan-multibyte @@ -72,8 +72,14 @@ fi scan -width 80 +inbox 11 > $actual || exit 1 check "$expected" "$actual" -# check decoding with an invalid multibyte sequence -cat >`mhpath new` <`mhpath new` < To: Some User Date: Mon, 31 Dec 2012 00:00:00 @@ -85,12 +91,13 @@ This message has an encoded Subject with an invalid character for the ISO-8859-1 character set, but it (U+2019) is valid UTF-8. EOF -cat >"$expected" <"$expected" <"$actual" -check "$expected" "$actual" + LC_CTYPE=ISO-8859-1 MM_CHARSET=ISO-8859-1 scan -width 75 last >"$actual" + check "$expected" "$actual" +fi # check scan width with a valid multibyte sequence cat >"$expected" <