]> git.ipfire.org Git - thirdparty/git.git/blob - t/t7813-grep-icase-iso.sh
The third batch
[thirdparty/git.git] / t / t7813-grep-icase-iso.sh
1 #!/bin/sh
2
3 test_description='grep icase on non-English locales'
4
5 TEST_PASSES_SANITIZE_LEAK=true
6 . ./lib-gettext.sh
7
8 test_expect_success GETTEXT_ISO_LOCALE 'setup' '
9 printf "TILRAUN: Halló Heimur!" >file &&
10 git add file &&
11 LC_ALL="$is_IS_iso_locale" &&
12 export LC_ALL
13 '
14
15 test_expect_success GETTEXT_ISO_LOCALE,PCRE 'grep pcre string' '
16 git grep --perl-regexp -i "TILRAUN: H.lló Heimur!" &&
17 git grep --perl-regexp -i "TILRAUN: H.LLÓ HEIMUR!"
18 '
19
20 test_done