@@ -53,54 +53,6 @@ test_expect_success REGEX_LOCALE 'pickaxe -i on non-ascii' '
53
53
test_cmp expected actual
54
54
'
55
55
56
- test_expect_success GETTEXT_LOCALE,PCRE ' log --author with an ascii pattern on UTF-8 data' '
57
- cat >expected <<-\EOF &&
58
- Author: <BOLD;RED>À Ú Thor<RESET> <[email protected] >
59
- EOF
60
- test_write_lines "forth" >file4 &&
61
- git add file4 &&
62
- git commit --author="À Ú Thor <[email protected] >" -m sécond &&
63
- git log -1 --color=always --perl-regexp --author=".*Thor" >log &&
64
- grep Author log >actual.raw &&
65
- test_decode_color <actual.raw >actual &&
66
- test_cmp expected actual
67
- '
68
-
69
- test_expect_success GETTEXT_LOCALE,PCRE ' log --committer with an ascii pattern on ISO-8859-1 data' '
70
- cat >expected <<-\EOF &&
71
- Commit: Ç<BOLD;RED> O Mîtter <[email protected] ><RESET>
72
- EOF
73
- test_write_lines "fifth" >file5 &&
74
- git add file5 &&
75
- GIT_COMMITTER_NAME="Ç O Mîtter" &&
76
- GIT_COMMITTER_EMAIL="[email protected] " &&
77
- git -c i18n.commitEncoding=latin1 commit -m thïrd &&
78
- git -c i18n.logOutputEncoding=latin1 log -1 --pretty=fuller --color=always --perl-regexp --committer=" O.*" >log &&
79
- grep Commit: log >actual.raw &&
80
- test_decode_color <actual.raw >actual &&
81
- test_cmp expected actual
82
- '
83
-
84
- test_expect_success GETTEXT_LOCALE,PCRE ' log --grep with an ascii pattern on UTF-8 data' '
85
- cat >expected <<-\EOF &&
86
- sé<BOLD;RED>con<RESET>d
87
- EOF
88
- git log -1 --color=always --perl-regexp --grep="con" >log &&
89
- grep con log >actual.raw &&
90
- test_decode_color <actual.raw >actual &&
91
- test_cmp expected actual
92
- '
93
-
94
- test_expect_success GETTEXT_LOCALE,PCRE ' log --grep with an ascii pattern on ISO-8859-1 data' '
95
- cat >expected <<-\EOF &&
96
- <BOLD;RED>thïrd<RESET>
97
- EOF
98
- git -c i18n.logOutputEncoding=latin1 log -1 --color=always --perl-regexp --grep="th.*rd" >log &&
99
- grep "th.*rd" log >actual.raw &&
100
- test_decode_color <actual.raw >actual &&
101
- test_cmp expected actual
102
- '
103
-
104
56
test_expect_success GETTEXT_LOCALE,LIBPCRE2 ' PCRE v2: setup invalid UTF-8 data' '
105
57
printf "\\200\\n" >invalid-0x80 &&
106
58
echo "ævar" >expected &&
0 commit comments