b78a774dab79cf54fcb47daa059bc5f78e76a4af
1#!/bin/sh
2
3test_description='grep icase on non-English locales'
4
5. ./lib-gettext.sh
6
7test_expect_success GETTEXT_LOCALE 'setup' '
8 test_write_lines "TILRAUN: Halló Heimur!" >file &&
9 git add file &&
10 LC_ALL="$is_IS_locale" &&
11 export LC_ALL
12'
13
14test_have_prereq GETTEXT_LOCALE &&
15test-regex "HALLÓ" "Halló" ICASE &&
16test_set_prereq REGEX_LOCALE
17
18test_expect_success REGEX_LOCALE 'grep literal string, no -F' '
19 git grep -i "TILRAUN: Halló Heimur!" &&
20 git grep -i "TILRAUN: HALLÓ HEIMUR!"
21'
22
23test_done