(command.CommandList children: [ (command.Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (lhs_expr.LhsName name:test_description) op: Equal rhs: {(SQ <'git blame encoding conversion'>)} ) ] ) (C {(.)} {(./test-lib.sh)}) (C {(.)} {(DQ ($ VSub_DollarName '$TEST_DIRECTORY')) (/t8005/utf8.txt)}) (C {(.)} {(DQ ($ VSub_DollarName '$TEST_DIRECTORY')) (/t8005/euc-japan.txt)}) (C {(.)} {(DQ ($ VSub_DollarName '$TEST_DIRECTORY')) (/t8005/sjis.txt)}) (C {(test_expect_success)} {(SQ <'setup the repository'>)} { (SQ <'\n'> <'\t# Create the file\n'> <'\techo "UTF-8 LINE" > file &&\n'> <'\tgit add file &&\n'> <'\tgit commit --author "$UTF8_NAME <utf8@localhost>" -m "$UTF8_MSG" &&\n'> <'\n'> <'\techo "EUC-JAPAN LINE" >> file &&\n'> <'\tgit add file &&\n'> <'\tgit config i18n.commitencoding eucJP &&\n'> <'\tgit commit --author "$EUC_JAPAN_NAME <euc-japan@localhost>" -m "$EUC_JAPAN_MSG" &&\n'> <'\n'> <'\techo "SJIS LINE" >> file &&\n'> <'\tgit add file &&\n'> <'\tgit config i18n.commitencoding SJIS &&\n'> <'\tgit commit --author "$SJIS_NAME <sjis@localhost>" -m "$SJIS_MSG"\n'> ) } ) (command.SimpleCommand words: [{(cat)}] redirects: [ (redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(expected)}) (redir.HereDoc op: <Redir_DLess '<<'> fd: 16777215 here_begin: {(EOF)} here_end_span_id: 88 stdin_parts: [ ('author ') ($ VSub_DollarName '$SJIS_NAME') ('\n') ('summary ') ($ VSub_DollarName '$SJIS_MSG') ('\n') ('author ') ($ VSub_DollarName '$SJIS_NAME') ('\n') ('summary ') ($ VSub_DollarName '$SJIS_MSG') ('\n') ('author ') ($ VSub_DollarName '$SJIS_NAME') ('\n') ('summary ') ($ VSub_DollarName '$SJIS_MSG') ('\n') ] ) ] ) (command.FuncDef name: filter_author_summary body: (command.BraceGroup children: [ (C {(sed)} {(-n)} {(-e)} {(SQ <'/^author /p'>)} {(-e)} {(SQ <'/^summary /p'>)} {(DQ ($ VSub_At '$@'))} ) ] ) ) (C {(test_expect_success)} {(KW_Bang '!') (MINGW)} {(SQ <'blame respects i18n.commitencoding'>)} { (SQ <'\n'> <'\tgit blame --incremental file >output &&\n'> <'\tfilter_author_summary output >actual &&\n'> <'\ttest_cmp expected actual\n'> ) } ) (command.SimpleCommand words: [{(cat)}] redirects: [ (redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(expected)}) (redir.HereDoc op: <Redir_DLess '<<'> fd: 16777215 here_begin: {(EOF)} here_end_span_id: 167 stdin_parts: [ ('author ') ($ VSub_DollarName '$EUC_JAPAN_NAME') ('\n') ('summary ') ($ VSub_DollarName '$EUC_JAPAN_MSG') ('\n') ('author ') ($ VSub_DollarName '$EUC_JAPAN_NAME') ('\n') ('summary ') ($ VSub_DollarName '$EUC_JAPAN_MSG') ('\n') ('author ') ($ VSub_DollarName '$EUC_JAPAN_NAME') ('\n') ('summary ') ($ VSub_DollarName '$EUC_JAPAN_MSG') ('\n') ] ) ] ) (C {(test_expect_success)} {(KW_Bang '!') (MINGW)} {(SQ <'blame respects i18n.logoutputencoding'>)} { (SQ <'\n'> <'\tgit config i18n.logoutputencoding eucJP &&\n'> <'\tgit blame --incremental file >output &&\n'> <'\tfilter_author_summary output >actual &&\n'> <'\ttest_cmp expected actual\n'> ) } ) (command.SimpleCommand words: [{(cat)}] redirects: [ (redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(expected)}) (redir.HereDoc op: <Redir_DLess '<<'> fd: 16777215 here_begin: {(EOF)} here_end_span_id: 216 stdin_parts: [ ('author ') ($ VSub_DollarName '$UTF8_NAME') ('\n') ('summary ') ($ VSub_DollarName '$UTF8_MSG') ('\n') ('author ') ($ VSub_DollarName '$UTF8_NAME') ('\n') ('summary ') ($ VSub_DollarName '$UTF8_MSG') ('\n') ('author ') ($ VSub_DollarName '$UTF8_NAME') ('\n') ('summary ') ($ VSub_DollarName '$UTF8_MSG') ('\n') ] ) ] ) (C {(test_expect_success)} {(KW_Bang '!') (MINGW)} {(SQ <'blame respects --encoding=UTF-8'>)} { (SQ <'\n'> <'\tgit blame --incremental --encoding=UTF-8 file >output &&\n'> <'\tfilter_author_summary output >actual &&\n'> <'\ttest_cmp expected actual\n'> ) } ) (command.SimpleCommand words: [{(cat)}] redirects: [ (redir.Redir op:<Redir_Great '>'> fd:16777215 arg_word:{(expected)}) (redir.HereDoc op: <Redir_DLess '<<'> fd: 16777215 here_begin: {(EOF)} here_end_span_id: 264 stdin_parts: [ ('author ') ($ VSub_DollarName '$SJIS_NAME') ('\n') ('summary ') ($ VSub_DollarName '$SJIS_MSG') ('\n') ('author ') ($ VSub_DollarName '$EUC_JAPAN_NAME') ('\n') ('summary ') ($ VSub_DollarName '$EUC_JAPAN_MSG') ('\n') ('author ') ($ VSub_DollarName '$UTF8_NAME') ('\n') ('summary ') ($ VSub_DollarName '$UTF8_MSG') ('\n') ] ) ] ) (C {(test_expect_success)} {(KW_Bang '!') (MINGW)} {(SQ <'blame respects --encoding=none'>)} { (SQ <'\n'> <'\tgit blame --incremental --encoding=none file >output &&\n'> <'\tfilter_author_summary output >actual &&\n'> <'\ttest_cmp expected actual\n'> ) } ) (C {(test_done)}) ] )