Staging
v0.5.1
https://github.com/git/git
Raw File
Tip revision: 041bc65923e13313ca1b77681c3b2950b5e0a163 authored by Jonathan Nieder on 19 April 2020, 23:28:57 UTC
Git 2.20.4
Tip revision: 041bc65
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