summaryrefslogtreecommitdiff
path: root/tests/prefix-of-multibyte
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-04-01 11:53:54 +0200
committerJim Meyering <meyering@redhat.com>2010-04-01 12:19:46 +0200
commitf4d75a8bf63eb2f3b884768e0fefd3f4dd08107b (patch)
treefe3ac437be41d638dd552b937ac8c2f59694ed3b /tests/prefix-of-multibyte
parent32d5db19e87a3a52fe67e028d828c136b659660b (diff)
downloadgrep-f4d75a8bf63eb2f3b884768e0fefd3f4dd08107b.tar.gz
tests: add explicit requirement for en_US.UTF-8
* tests/char-class-multibyte: Use require_en_utf8_locale_, rather than open-coding it. * tests/prefix-of-multibyte: Require the locale explicitly. * tests/fgrep-infloop: Likewise. This fixes test failures that would arise on systems without that particular locale. Reported by Ludovic Courtès.
Diffstat (limited to 'tests/prefix-of-multibyte')
-rw-r--r--tests/prefix-of-multibyte2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/prefix-of-multibyte b/tests/prefix-of-multibyte
index f9e42bf1..c077b816 100644
--- a/tests/prefix-of-multibyte
+++ b/tests/prefix-of-multibyte
@@ -3,6 +3,8 @@
: ${srcdir=.}
. "$srcdir/init.sh"; path_prepend_ ../src
+require_en_utf8_locale_
+
encode() { echo "$1" | tr ABC '\357\274\241'; }
fail=0