diff --git a/t/test-lib.sh b/t/test-lib.sh index 84650d3536e164..609c671b4ab51a 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1730,6 +1730,12 @@ case $uname_s in test_set_prereq GREP_STRIPS_CR test_set_prereq WINDOWS GIT_TEST_CMP="GIT_DIR=/dev/null git diff --no-index --ignore-cr-at-eol --" + if ! type iconv >/dev/null 2>&1 + then + iconv () { + test-tool iconv "$@" + } + fi ;; *CYGWIN*) test_set_prereq POSIXPERM