]> diplodocus.org Git - nmh/blobdiff - test/scan/test-scan-multibyte
If the multibyte width test fails, dump the values of wcwidth() for the
[nmh] / test / scan / test-scan-multibyte
index 2650d12443b40815d59926974ef0df6f8a2e2588..c2c581bcc1bfba3db3f1733fa917addf72a644bf 100755 (executable)
@@ -70,7 +70,12 @@ 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