Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Sun, 14 Jun 2015 16:21:56 +0200
From: Christian Neukirchen <chneukirchen@...il.com>
To: Rich Felker <dalias@...c.org>
Cc: musl@...ts.openwall.com
Subject: Re: Tests needed for byte-based C locale

Rich Felker <dalias@...c.org> writes:

> Here are some basic tests I'd like to have for the byte-based C
> locale, preferably most of them before committing the code and all
> before a release containing it. Any help writing them (for the
> libc-test framework) would be much appreciated. Short of that, even
> just some quick sanity checks using existing programs (e.g. busybox
> utils with regex/fnmatch usage) would be helpful.
>
> Regex & fnmatch:
>
> - Literals with arbitrary high bytes match.
> - Brackets match byte values/ranges.

printf 'foo\x80bar\n' | busybox grep f.*b
<nothing>
printf 'foo\x80bar\n' | LANG=C LC_ALL=C busybox grep f.*b
foo�bar
printf 'foo\x80bar\n' | LANG=C LC_ALL=C busybox grep f.b
<nothing again, why?>

Breakpoint 1, regexec (preg=0x7ffff7ffe668, 
    string=0x7ffff7ffec00 "foo\200bar", nmatch=1, pmatch=0x7ffff7ffe6a8, 
    eflags=0) at src/regex/regexec.c:983
then returns 1.

-- 
Christian Neukirchen  <chneukirchen@...il.com>  http://chneukirchen.org

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.