VirtualBox

source: kBuild/vendor/grep/2.12/tests/word-delim-multibyte

Last change on this file was 2595, checked in by bird, 13 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
6require_en_utf8_locale_
7
8e_acute=$(printf '\303\251')
9echo "$e_acute" > in || framework_failure_
10LC_ALL=en_US.UTF-8
11export LC_ALL
12
13fail=0
14grep "\<$e_acute" in > out 2>err || fail=1
15
16compare out in || fail=1
17compare /dev/null err || fail=1
18
19Exit $fail
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette