]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-textcharset
Use test_skip in test-textcharset if not built with iconv.
[nmh] / test / mhshow / test-textcharset
index b80802f1d4647771641044b4f482d7c0349c95c0..c1a69d101d7b3a3ba6f04d213c755de71239d8b0 100755 (executable)
@@ -17,8 +17,7 @@ fi
 setup_test
 
 if test "$ICONV_ENABLED" -eq 0; then
-  echo "$0: skipping test-textcharset because nmh was built without iconv"
-  exit 0
+  test_skip 'test-textcharset requires that nmh have been built with iconv'
 fi
 
 expected="$MH_TEST_DIR"/$$.expected
@@ -48,6 +47,7 @@ MIME-Version: 1.0
 
 EOF
 
+LC_ALL=C; export LC_ALL
 run_prog mhshow -textcharset UTF-8 -notextcharset -nopause last >"$actual" 2>&1
 check "$expected" "$actual"