echo " got: $ret"
failed=1
fi
+ printf "$2" > check-isutf8.tmp.$$
+ ./isutf8 -q check-isutf8.tmp.$$
+ ret=$?
+ rm -f check-isutf8.tmp.$$
+ if [ $ret != $1 ]; then
+ echo "Failure (from file):"
+ echo " input: $2"
+ echo " expected: $1"
+ echo " got: $ret"
+ failed=1
+ fi
}
check 0 ''
+moreutils (0.26) UNRELEASED; urgency=low
+
+ * isutf8: Correct inverted exit code when passed a file to check.
+ Closes: #453306
+
+ -- Joey Hess <joeyh@debian.org> Wed, 28 Nov 2007 14:16:44 -0500
+
moreutils (0.25) unstable; urgency=low
* isutf8: Detect and reject overlong UTF-8 sequences. Closes: #440951
strerror(errno));
ok = 0;
} else {
- if (is_utf8_byte_stream(file, argv[i], quiet))
+ if (! is_utf8_byte_stream(file, argv[i], quiet))
ok = 0;
(void) fclose(file);
}