diff --git a/t/test-lib.sh b/t/test-lib.sh index 56934cae77ab14..f558df4f1377ea 100644 --- a/t/test-lib.sh +++ b/t/test-lib.sh @@ -1703,6 +1703,12 @@ case $uname_s in test_set_prereq GREP_STRIPS_CR test_set_prereq WINDOWS GIT_TEST_CMP="test-tool cmp" + if ! type iconv >/dev/null 2>&1 + then + iconv () { + test-tool iconv "$@" + } + fi ;; *CYGWIN*) test_set_prereq POSIXPERM