]> git.ipfire.org Git - thirdparty/git.git/commit
t6006: don't use iconv(1) without ICONV prereq
authorPatrick Steinhardt <ps@pks.im>
Fri, 20 Feb 2026 08:26:03 +0000 (09:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Feb 2026 15:52:27 +0000 (07:52 -0800)
commiteb49c6ef43e3f7ac0050bddf42ea85641965dc90
treeaed5403e1e48797da03e84daf15c4d68ea16faa5
parentc70bea26c763ae0caa170af84c92128b533dd1e9
t6006: don't use iconv(1) without ICONV prereq

Two tests in t6006 depend on the iconv(1) prerequisite to reencode a
commit message. This executable may not even exist though in case the
prereq is not set, which will cause the tests to fail.

Fix this by using UTF-8 instead when the prereq is not set.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t6006-rev-list-format.sh