@@ -15,7 +15,7 @@ commit_msg_is () {
1515
1616 printf " %s" " $( git log --pretty=format:%s%b -1) " > $expect &&
1717 printf " %s" " $1 " > $actual &&
18- test_cmp $expect $actual
18+ test_i18ncmp $expect $actual
1919}
2020
2121# A sanity check to see if commit is working at all.
@@ -72,15 +72,15 @@ test_expect_success 'adding comments to a template should not commit' '
7272 )
7373'
7474
75- test_expect_success C_LOCALE_OUTPUT ' adding real content to a template should commit' '
75+ test_expect_success ' adding real content to a template should commit' '
7676 (
7777 test_set_editor "$TEST_DIRECTORY"/t7500/add-content &&
7878 git commit --template "$TEMPLATE"
7979 ) &&
8080 commit_msg_is "template linecommit message"
8181'
8282
83- test_expect_success C_LOCALE_OUTPUT ' -t option should be short for --template' '
83+ test_expect_success ' -t option should be short for --template' '
8484 echo "short template" > "$TEMPLATE" &&
8585 echo "new content" >> foo &&
8686 git add foo &&
@@ -91,7 +91,7 @@ test_expect_success C_LOCALE_OUTPUT '-t option should be short for --template' '
9191 commit_msg_is "short templatecommit message"
9292'
9393
94- test_expect_success C_LOCALE_OUTPUT ' config-specified template should commit' '
94+ test_expect_success ' config-specified template should commit' '
9595 echo "new template" > "$TEMPLATE" &&
9696 git config commit.template "$TEMPLATE" &&
9797 echo "more content" >> foo &&
@@ -290,7 +290,7 @@ test_expect_success 'commit --squash works with -c for same commit' '
290290 commit_msg_is "squash! edited commit"
291291'
292292
293- test_expect_success C_LOCALE_OUTPUT ' commit --squash works with editor' '
293+ test_expect_success ' commit --squash works with editor' '
294294 commit_for_rebase_autosquash_setup &&
295295 test_set_editor "$TEST_DIRECTORY"/t7500/add-content &&
296296 git commit --squash HEAD~1 &&
0 commit comments