diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-02-20 09:26:01 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-02-20 07:52:27 -0800 |
| commit | effb0aa84b3b3e6a16ed744fc9361257c7259d97 (patch) | |
| tree | 254b6b2acb8cd249c0e26a6e43c572cb9c9a2ab8 /contrib/persistent-https | |
| parent | 9ce639c76f567c401c37bc10322ca7ddc7129681 (diff) | |
| download | git-effb0aa84b3b3e6a16ed744fc9361257c7259d97.tar.gz git-effb0aa84b3b3e6a16ed744fc9361257c7259d97.zip | |
t4205: improve handling of ICONV prerequisite
In t4205 we have a bunch of tests that depend on the iconv prereq. This
is for most of the part because we format commit messages that have been
encoded in an encoding different than UTF-8.
Those tests fall into two classes though:
- One class of tests outputs the data as-is without reencoding.
- One class of tests outputs the data with "i18n.logOutputEncoding" to
reencode it.
Curiously enough, both of these classes are marked with the ICONV
prereq, even though one might expect that the first class wouldn't need
the prereq. This is because we unconditionally use ISO-8859-1 encoding
for the initial commit message, and thus we depend on converting to
UTF-8 indeed.
This creates another problem though: when the iconv(1) executable does
not exist the test setup fails, even in the case where the ICONV prereq
has not been set.
Fix these issues by making the test encoding conditional on ICONV: if
it's available we use ISO-8859-1, otherwise we use UTF-8. This fixes the
test setup on platforms without iconv(1), and it allows us to drop the
ICONV prereq from a bunch of tests.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/persistent-https')
0 files changed, 0 insertions, 0 deletions
