|
Last change
on this file since 2595 was 2595, checked in by bird, 12 years ago |
|
gnu grep version 2.12 (grep-2.12.tar.xz, md5sum=8d2f0346d08b13c18afb81f0e8aa1e2f)
|
|
File size:
728 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | # This would segfault for grep-2.6
|
|---|
| 3 | . "${srcdir=.}/init.sh"; path_prepend_ ../src
|
|---|
| 4 |
|
|---|
| 5 | require_en_utf8_locale_
|
|---|
| 6 | require_compiled_in_MB_support
|
|---|
| 7 |
|
|---|
| 8 | printf 'é\n' > exp1 || framework_failure_
|
|---|
| 9 | fail=0
|
|---|
| 10 |
|
|---|
| 11 | for LOC in en_US.UTF-8 $LOCALE_FR_UTF8; do
|
|---|
| 12 | out=out1-$LOC
|
|---|
| 13 | printf 'á\nç\né\n' | LC_ALL=$LOC grep '[é]' > $out || fail=1
|
|---|
| 14 | compare exp1 $out || fail=1
|
|---|
| 15 | done
|
|---|
| 16 |
|
|---|
| 17 | printf 'É\n' > exp2 || framework_failure_
|
|---|
| 18 |
|
|---|
| 19 | for LOC in en_US.UTF-8 $LOCALE_FR_UTF8; do
|
|---|
| 20 | out=out2-$LOC
|
|---|
| 21 | printf 'Á\nÇ\nÉ\n' | LC_ALL=$LOC grep '[É]' > $out || fail=1
|
|---|
| 22 | compare exp2 $out || fail=1
|
|---|
| 23 | done
|
|---|
| 24 |
|
|---|
| 25 | for LOC in en_US.UTF-8 $LOCALE_FR_UTF8; do
|
|---|
| 26 | out=out3-$LOC
|
|---|
| 27 | printf '\xc3\n' | LC_ALL=$LOC grep '[é]' > $out
|
|---|
| 28 | test $? = 1 || fail=1
|
|---|
| 29 | done
|
|---|
| 30 |
|
|---|
| 31 | Exit $fail
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.