On Mon, May 31, 2021 at 11:16 AM Ævar Arnfjörð Bjarmason <avarab@xxxxxxxxx> wrote: > > There's still a failure[1] in t2082-parallel-checkout-attributes.sh > though, which is new in 2.32.0-rc*. The difference is in an unexpected > BOM: > > avar@gcc119:[/scratch/avar/git/t]perl -nle 'print unpack "H*"' trash\ directory.t2082-parallel-checkout-attributes/encoding/A.internal > efbbbf74657874 > avar@gcc119:[/scratch/avar/git/t]perl -nle 'print unpack "H*"' trash\ directory.t2082-parallel-checkout-attributes/encoding/utf8-text > 74657874 > > I.e. the A.internal starts with 0xefbbbf. The 2nd test of t0028*.sh also > fails similarly[2], so perhaps it's some old/iconv/whatever issue not > per-se related to any change of yours. I ran t2080 on the same machine (gcc119) to try debugging it but I could not reproduce the test failure [1]. t0028 also passed here. Could it be that we are building git differently? I did `gmake CC=gcc NO_CURL=YesPlease`. The encoding inspection also seems OK here: matheustavares@gcc119:[/home/matheustavares/git/t]perl -nle 'print unpack "H*"' trash\ directory.t2082-parallel-checkout-attributes/encoding/A.internal 74657874 matheustavares@gcc119:[/home/matheustavares/git/t]perl -nle 'print unpack "H*"' trash\ directory.t2082-parallel-checkout-attributes/encoding/utf8-text 74657874 [1]: Initialized empty Git repository in /home/matheustavares/git/t/trash directory.t2082-parallel-checkout-attributes/encoding/.git/ + cd encoding + echo text + 1> utf8-text + write_utf16 + 0< utf8-text 1> utf16-text checking prerequisite: NO_UTF16_BOM mkdir -p "$TRASH_DIRECTORY/prereq-test-dir-NO_UTF16_BOM" && ( cd "$TRASH_DIRECTORY/prereq-test-dir-NO_UTF16_BOM" && test $(printf abc | iconv -f UTF-8 -t UTF-16 | wc -c) = 6 ) + mkdir -p /home/matheustavares/git/t/trash directory.t2082-parallel-checkout-attributes/prereq-test-dir-NO_UTF16_BOM + cd /home/matheustavares/git/t/trash directory.t2082-parallel-checkout-attributes/prereq-test-dir-NO_UTF16_BOM + wc -c + iconv -f UTF-8 -t UTF-16 + printf abc + test 6 = 6 prerequisite NO_UTF16_BOM ok + echo A working-tree-encoding=UTF-16 + 1> .gitattributes + cp utf16-text A + cp utf8-text B + git add A B .gitattributes + git commit -m encoding [master (root-commit) eb6a843] encoding Author: A U Thor <author@xxxxxxxxxxx> 3 files changed, 3 insertions(+) create mode 100644 .gitattributes create mode 100644 A create mode 100644 B + git cat-file -p :A + 1> A.internal + test_cmp_bin utf8-text A.internal + rm A B + test_checkout_workers 2 git checkout A B Updated 2 paths from the index + test_cmp_bin utf16-text A + test_cmp_bin utf8-text B + test_unconfig --global checkout.thresholdForParallelism + exit 0 + eval_ret=0 + test_unconfig --global checkout.workers + exit 0 + eval_ret=0 + : ok 2 - parallel-checkout with re-encoding