Skip to content

Commit 1265886

Browse files
committed
Merge branch 'jk/utf8-switch-between-nfd-and-nfc'
Document a known breakage with a test. * jk/utf8-switch-between-nfd-and-nfc: t3910: show failure of core.precomposeunicode with decomposed filenames
2 parents 89080fc + 750b2e4 commit 1265886

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

t/t3910-mac-os-precompose.sh

+10
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,16 @@ test_expect_success "Add long precomposed filename" '
140140
git add * &&
141141
git commit -m "Long filename"
142142
'
143+
144+
test_expect_failure 'handle existing decomposed filenames' '
145+
echo content >"verbatim.$Adiarnfd" &&
146+
git -c core.precomposeunicode=false add "verbatim.$Adiarnfd" &&
147+
git commit -m "existing decomposed file" &&
148+
>expect &&
149+
git ls-files --exclude-standard -o "verbatim*" >untracked &&
150+
test_cmp expect untracked
151+
'
152+
143153
# Test if the global core.precomposeunicode stops autosensing
144154
# Must be the last test case
145155
test_expect_success "respect git config --global core.precomposeunicode" '

0 commit comments

Comments
 (0)