]> diplodocus.org Git - nmh/blobdiff - test/mhshow/test-charset
mhshow/test-charset: Test iconv(1)'s result, not just its exit status.
[nmh] / test / mhshow / test-charset
old mode 100644 (file)
new mode 100755 (executable)
index 0b381e1..8f19967
@@ -29,7 +29,8 @@ else
     #### 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  ||
+    utf8="`printf '\344' | iconv -f EBCDIC-US -t UTF-8 2>/dev/null`" &&
+    test x"$utf8" = xU ||
         skip_param_value_checks=1
 fi