(CommandList children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:test_description) op: Equal rhs: {(SQ <'test log with i18n features'>)} spids: [4] ) ] spids: [4] ) (C {(.)} {(./test-lib.sh)}) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:utf8_e) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(printf)} {(SQ <'\\303\\251'>)})]) left_token: <Left_CommandSub '$('> spids: [18 24] ) } spids: [17] ) ] spids: [17] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:latin1_e) op: Equal rhs: { (CommandSubPart command_list: (CommandList children:[(C {(printf)} {(SQ <'\\351'>)})]) left_token: <Left_CommandSub '$('> spids: [27 33] ) } spids: [26] ) ] spids: [26] ) (C {(test_expect_success)} {(SQ <'create commits in different encodings'>)} { (SQ <'\n'> <'\ttest_tick &&\n'> <'\tcat >msg <<-EOF &&\n'> <'\tutf8\n'> <'\n'> <'\tt${utf8_e}st\n'> <'\tEOF\n'> <'\tgit add msg &&\n'> <'\tgit -c i18n.commitencoding=utf8 commit -F msg &&\n'> <'\tcat >msg <<-EOF &&\n'> <'\tlatin1\n'> <'\n'> <'\tt${latin1_e}st\n'> <'\tEOF\n'> <'\tgit add msg &&\n'> <'\tgit -c i18n.commitencoding=ISO-8859-1 commit -F msg\n'> ) } ) (C {(test_expect_success)} {(SQ <'log --grep searches in log output encoding (utf8)'>)} { (SQ <'\n'> <'\tcat >expect <<-\\EOF &&\n'> <'\tlatin1\n'> <'\tutf8\n'> <'\tEOF\n'> <'\tgit log --encoding=utf8 --format=%s --grep=$utf8_e >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (C {(test_expect_success)} {(KW_Bang '!') (MINGW)} {(SQ <'log --grep searches in log output encoding (latin1)'>)} { (SQ <'\n'> <'\tcat >expect <<-\\EOF &&\n'> <'\tlatin1\n'> <'\tutf8\n'> <'\tEOF\n'> <'\tgit log --encoding=ISO-8859-1 --format=%s --grep=$latin1_e >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (C {(test_expect_success)} {(KW_Bang '!') (MINGW)} {(SQ <'log --grep does not find non-reencoded values (utf8)'>)} { (SQ <'\n'> <'\t>expect &&\n'> <'\tgit log --encoding=utf8 --format=%s --grep=$latin1_e >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (C {(test_expect_success)} {(SQ <'log --grep does not find non-reencoded values (latin1)'>)} { (SQ <'\n'> <'\t>expect &&\n'> <'\tgit log --encoding=ISO-8859-1 --format=%s --grep=$utf8_e >actual &&\n'> <'\ttest_cmp expect actual\n'> ) } ) (C {(test_done)}) ] )