Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t8005-blame-i18n.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t8005-blame-i18n.sh` 103 lines ยท 2261 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='git blame encoding conversion' 4 5 . ./test-lib.sh 6 7 if ! test_have_prereq ICONV 8 then 9 skip_all='skipping blame i18n tests; iconv not available' 10 test_done 11 fi 12 13 . "$TEST_DIRECTORY"/t8005/utf8.txt 14 . "$TEST_DIRECTORY"/t8005/euc-japan.txt 15 . "$TEST_DIRECTORY"/t8005/sjis.txt 16 17 test_expect_success 'setup the repository' ' 18 # Create the file 19 echo "UTF-8 LINE" > file && 20 git add file && 21 git commit --author "$UTF8_NAME " -m "$UTF8_MSG" && 22 23 echo "EUC-JAPAN LINE" >> file && 24 git add file && 25 git config i18n.commitencoding eucJP && 26 git commit --author "$EUC_JAPAN_NAME " -m "$EUC_JAPAN_MSG" && 27 28 echo "SJIS LINE" >> file && 29 git add file && 30 git config i18n.commitencoding SJIS && 31 git commit --author "$SJIS_NAME " -m "$SJIS_MSG" 32 ' 33 34 cat >expected <output && 50 filter_author_summary output >actual && 51 test_cmp expected actual 52 ' 53 54 cat >expected <output && 67 filter_author_summary output >actual && 68 test_cmp expected actual 69 ' 70 71 cat >expected <output && 83 filter_author_summary output >actual && 84 test_cmp expected actual 85 ' 86 87 cat >expected <output && 99 filter_author_summary output >actual && 100 test_cmp expected actual 101 ' 102 103 test_done