]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-charset
Removed if ! bash-ism.
[nmh] / test / mhshow / test-charset
index d8f176d31d737237a6c66d6bf86f4d86f59ec434..6c7095ff093a455680ad21fac4636f96c16ad34f 100755 (executable)
@@ -25,13 +25,12 @@ if test "$ICONV_ENABLED" -eq 0; then
     text_size=10
 else
     text_size=11
     text_size=10
 else
     text_size=11
-    if ! iconv -l | grep EBCDIC-US >/dev/null; then
-        #### For unknown reasons, the parameter values checks
-        #### fail on the FreeBSD10 buildbot.  It doesn't
-        #### support EBCDIC-US, which is used by the checks,
-        #### so use that to detect whether to skip the check.
+    #### For unknown reasons, the parameter values checks fail on the
+    #### FreeBSD10 buildbot.  It doesn't support EBCDIC-US, which is used
+    #### by the checks, so check for that.  Though that doesn't seem to be
+    #### the reason.
+    printf '\xe4' | iconv -f EBCDIC-US -t UTF-8 >/dev/null 2>&1  &&
         skip_param_value_checks=1
         skip_param_value_checks=1
-    fi
 fi
 
 expected=$MH_TEST_DIR/$$.expected
 fi
 
 expected=$MH_TEST_DIR/$$.expected