summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2022-01-05 14:01:31 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2022-01-05 14:01:31 -0800
commitc91b0b7c7270dac8c539062d193749e654b7f002 (patch)
tree86df5729ee96b399c5f5b578708305670f6e5fbb /t
parentMerge branch 'jc/t4204-do-not-write-git-on-upstream-of-pipe' (diff)
parentgrep/pcre2: factor out literal variable (diff)
downloadtgif-c91b0b7c7270dac8c539062d193749e654b7f002.tar.xz
Merge branch 'rs/pcre2-utf'
"git grep --perl-regexp" failed to match UTF-8 characters with wildcard when the pattern consists only of ASCII letters, which has been corrected. * rs/pcre2-utf: grep/pcre2: factor out literal variable grep/pcre2: use PCRE2_UTF even with ASCII patterns
Diffstat (limited to 't')
-rwxr-xr-xt/t7812-grep-icase-non-ascii.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/t7812-grep-icase-non-ascii.sh b/t/t7812-grep-icase-non-ascii.sh
index e5d1e4ea68..ca3f24f807 100755
--- a/t/t7812-grep-icase-non-ascii.sh
+++ b/t/t7812-grep-icase-non-ascii.sh
@@ -123,4 +123,10 @@ test_expect_success GETTEXT_LOCALE,LIBPCRE2,PCRE2_MATCH_INVALID_UTF 'PCRE v2: gr
test_cmp invalid-0xe5 actual
'
+test_expect_success GETTEXT_LOCALE,LIBPCRE2 'PCRE v2: grep non-literal ASCII from UTF-8' '
+ git grep --perl-regexp -h -o -e ll. file >actual &&
+ echo "lló" >expected &&
+ test_cmp expected actual
+'
+
test_done