Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Sat, 13 Jun 2015 22:53:42 -0400
From: Rich Felker <dalias@...c.org>
To: musl@...ts.openwall.com
Subject: Tests needed for byte-based C locale

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.

Multibyte functions (test r/non-r, string funcs, and btowc/wctob too):

- Successful round-trip for arbitrary bytes.
- Wchar values outside 0-7f & df80-dfff ranges give EILSEQ.

Iconv:

- Conversions to/from UTF-8 don't break in C locale.

Stdio:

- Encoding rule bound at time stream becomes oriented.
- All wide functions cause orientation/binding of encoding rule.
- Byte printf/scanf use current locale for %ls/%lc/%l[, not file's.
- Wide printf/scanf use current locale for %s/%c/%[, not file's.
- Wchar values outside 0-7f & df80-dfff ranges give EILSEQ.

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.