mirror of
https://https.git.savannah.gnu.org/git/grep.git
synced 2026-01-26 15:39:06 +00:00
tests: Fix recognition of cs_CZ.UTF-8 locale on FreeBSD.
* tests/fmbtest: Use 'locale charmap' to determine the locale's encoding. * tests/foad1: Likewise.
This commit is contained in:
parent
3612f5e218
commit
eda769be72
@ -10,7 +10,7 @@
|
||||
cz=cs_CZ.UTF-8
|
||||
|
||||
# If cs_CZ.UTF-8 locale doesn't work, skip this test.
|
||||
LC_ALL=$cz locale -k LC_CTYPE 2>/dev/null | grep -q charmap.*UTF-8 \
|
||||
test "`LC_ALL=$cz locale charmap 2>/dev/null`" = UTF-8 \
|
||||
|| skip_ this system lacks the $cz locale
|
||||
|
||||
# If matching is done in single-byte mode, skip this test too
|
||||
|
||||
@ -150,7 +150,7 @@ Exit $failures
|
||||
# The rest of this file is meant to be executed under this locale.
|
||||
LC_ALL=cs_CZ.UTF-8; export LC_ALL
|
||||
# If the UTF-8 locale doesn't work, skip these tests silently.
|
||||
locale -k LC_CTYPE 2>/dev/null | grep -q "charmap.*UTF-8" || Exit $failures
|
||||
test "`locale charmap 2>/dev/null`" = UTF-8 || Exit $failures
|
||||
|
||||
# Test character class erroneously matching a '[' character.
|
||||
grep_test "[/" "" "[[:alpha:]]" -E
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user