|
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:
401 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | # exercise \< and \> with multibyte data.
|
|---|
| 3 | # Derived from http://savannah.gnu.org/bugs/?29537
|
|---|
| 4 | . "${srcdir=.}/init.sh"; path_prepend_ ../src
|
|---|
| 5 |
|
|---|
| 6 | require_en_utf8_locale_
|
|---|
| 7 |
|
|---|
| 8 | e_acute=$(printf '\303\251')
|
|---|
| 9 | echo "$e_acute" > in || framework_failure_
|
|---|
| 10 | LC_ALL=en_US.UTF-8
|
|---|
| 11 | export LC_ALL
|
|---|
| 12 |
|
|---|
| 13 | fail=0
|
|---|
| 14 | grep "\<$e_acute" in > out 2>err || fail=1
|
|---|
| 15 |
|
|---|
| 16 | compare out in || fail=1
|
|---|
| 17 | compare /dev/null err || fail=1
|
|---|
| 18 |
|
|---|
| 19 | Exit $fail
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.