blob: 908b7887f7eea864b7eb5d39e014feb633b0d0ac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
# This would infloop for grep-2.6.1
. "${srcdir=.}/init.sh"; path_prepend_ ../src
require_en_utf8_locale_
require_timeout_
encode() { echo "$1" | tr ABC '\357\274\241'; }
fail=0
for LOC in en_US.UTF-8 $LOCALE_FR_UTF8; do
out=out1-$LOC
encode ABC \
| LC_ALL=$LOC timeout 10s grep -F "$(encode BC)" > $out 2>&1
test $? = 1 || fail=1
compare $out /dev/null || fail=1
done
Exit $fail
|