Skip to content

Commit 10d76d0

Browse files
committed
tests(mingw): if iconv is unavailable, use test-helper --iconv
Signed-off-by: Johannes Schindelin <[email protected]>
1 parent 8e7a2d8 commit 10d76d0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

t/test-lib.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1362,6 +1362,12 @@ case $uname_s in
13621362
test_set_prereq SED_STRIPS_CR
13631363
test_set_prereq GREP_STRIPS_CR
13641364
GIT_TEST_CMP="test-tool cmp"
1365+
if ! type iconv >/dev/null 2>&1
1366+
then
1367+
iconv () {
1368+
test-tool iconv "$@"
1369+
}
1370+
fi
13651371
;;
13661372
*CYGWIN*)
13671373
test_set_prereq POSIXPERM

0 commit comments

Comments
 (0)