1# $FreeBSD$ 2 3atf_test_case multibyte 4multibyte_head() 5{ 6 atf_set "descr" "Check matching multibyte characters (PR153502)" 7} 8multibyte_body() 9{ 10 export LC_CTYPE="C.UTF-8" 11 12 printf 'é' | atf_check -o "inline:é" \ 13 sed -ne '/^.$/p' 14 printf 'éé' | atf_check -o "inline:éé" \ 15 sed -ne '/^..$/p' 16 printf 'aéa' | atf_check -o "inline:aéa" \ 17 sed -ne '/a.a/p' 18 printf 'aéa'| atf_check -o "inline:aéa" \ 19 sed -ne '/a.*a/p' 20 printf 'aaéaa' | atf_check -o "inline:aaéaa" \ 21 sed -ne '/aa.aa/p' 22 printf 'aéaéa' | atf_check -o "inline:aéaéa" \ 23 sed -ne '/a.a.a/p' 24 printf 'éa' | atf_check -o "inline:éa" \ 25 sed -ne '/.a/p' 26 printf 'aéaa' | atf_check -o "inline:aéaa" \ 27 sed -ne '/a.aa/p' 28 printf 'éaé' | atf_check -o "inline:éaé" \ 29 sed -ne '/.a./p' 30} 31 32atf_init_test_cases() 33{ 34 atf_add_test_case multibyte 35} 36