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 14:13:49 +0200
From: Christian Neukirchen <>
To: Rich Felker <>
Subject: Re: Tests needed for byte-based C locale

Rich Felker <> 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.

With GNU grep 2.21 + these patches:

$ printf 'foo\x80bar' | LANG=C grep f                  
$ printf 'foo\x80bar' | LC_ALL=C grep 'o.b'
$ printf 'foo\x80bar' | LC_ALL=C grep $'[\177-\201]' 

(I guess this only tests binary detection, tho.)

Christian Neukirchen  <>

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.