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