X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/d5e78944632398a4e31bca0c43cb4df3b30b1640..88363a377a5a6f1f9e3984c2a300816c2042f5e3:/test/scan/test-scan-multibyte diff --git a/test/scan/test-scan-multibyte b/test/scan/test-scan-multibyte index 819c34c0..c2c581bc 100755 --- a/test/scan/test-scan-multibyte +++ b/test/scan/test-scan-multibyte @@ -70,16 +70,21 @@ else fi scan -width 80 +inbox 11 > $actual || exit 1 +oldfailed="${failed:-0}" check "$expected" "$actual" +if test "$oldfailed" -ne "${failed:-0}"; then + echo "Complete UTF-8 width table for BMP" + ${MH_OBJ_DIR}/test/getcwidth --dump +fi # # Check decoding with an invalid multibyte sequence. We skip this test # if we don't have iconv support, since it requires converting from one -# character set to another +# character set to another. Be sure we created the test file, though, because +# it's required for the test right after it. # -if test "$ICONV_ENABLED" -eq 1; then - cat >`mhpath new` <`mhpath new` < To: Some User Date: Mon, 31 Dec 2012 00:00:00 @@ -91,10 +96,11 @@ 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" fi