In t7810 we verify whether the system has proper multibyte locale
support by executing `test-tool regex` with a unicode character. When
this check fails though we'll output an error that breaks the TAP
format.
Fix this issue by turning the logic into a lazy prerequisite.
Reported-by: Jeff King <peff@peff.net>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
'
}
-LC_ALL=en_US.UTF-8 test-tool regex '^.$' '¿' &&
- test_set_prereq MB_REGEX
+test_lazy_prereq MB_REGEX '
+ LC_ALL=en_US.UTF-8 test-tool regex "^.$" "¿"
+'
cat >hello.c <<EOF
#include <assert.h>