|
Last change
on this file was 2595, checked in by bird, 12 years ago |
|
gnu grep version 2.12 (grep-2.12.tar.xz, md5sum=8d2f0346d08b13c18afb81f0e8aa1e2f)
|
|
File size:
470 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | # This would mistakenly print a line prior to grep-2.6.2.
|
|---|
| 3 | . "${srcdir=.}/init.sh"; path_prepend_ ../src
|
|---|
| 4 |
|
|---|
| 5 | require_en_utf8_locale_
|
|---|
| 6 | require_compiled_in_MB_support
|
|---|
| 7 |
|
|---|
| 8 | encode() { echo "$1" | tr ABC '\357\274\241'; }
|
|---|
| 9 |
|
|---|
| 10 | fail=0
|
|---|
| 11 |
|
|---|
| 12 | for LOC in en_US.UTF-8 $LOCALE_FR_UTF8; do
|
|---|
| 13 | for opt in '' '-F'; do
|
|---|
| 14 | out=out-$opt-$LOC
|
|---|
| 15 | encode ABC | LC_ALL=$LOC grep $opt "$(encode A)" > $out 2>&1
|
|---|
| 16 | test $? = 1 || fail=1
|
|---|
| 17 | compare /dev/null $out || fail=1
|
|---|
| 18 | done
|
|---|
| 19 | done
|
|---|
| 20 |
|
|---|
| 21 | Exit $fail
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.