https://github.com/git/git
Raw File
Tip revision: 69986e19ffcfb9af674ae5180689ab7bbf92ed28 authored by Junio C Hamano on 19 October 2020, 16:58:42 UTC
Git 2.29
Tip revision: 69986e1
t7813-grep-icase-iso.sh
#!/bin/sh

test_description='grep icase on non-English locales'

. ./lib-gettext.sh

test_expect_success GETTEXT_ISO_LOCALE 'setup' '
	printf "TILRAUN: Halló Heimur!" >file &&
	git add file &&
	LC_ALL="$is_IS_iso_locale" &&
	export LC_ALL
'

test_expect_success GETTEXT_ISO_LOCALE,PCRE 'grep pcre string' '
	git grep --perl-regexp -i "TILRAUN: H.lló Heimur!" &&
	git grep --perl-regexp -i "TILRAUN: H.LLÓ HEIMUR!"
'

test_done
back to top