tests/bogus-wctob
raw| 1 | #!/bin/sh |
| 2 | # This was latent in grep-2.8 and earlier because we punted interpretation |
| 3 | # of MBCSETs to glibc. However, it becomes apparent as soon as "[à]" is |
| 4 | # simplified to "à". |
| 5 | . "${srcdir=.}/init.sh"; path_prepend_ ../src |
| 6 | |
| 7 | printf '\340' > in || framework_failure_ |
| 8 | fail=0 |
| 9 | |
| 10 | LC_ALL=en_US.UTF-8 grep '[à]' in |
| 11 | case $? in |
| 12 | 0) fail=1 ;; |
| 13 | 1) ;; |
| 14 | 2) framework_failure_ unexpected error from grep ;; |
| 15 | esac |
| 16 | |
| 17 | Exit $fail |