From: Rich Felker <dalias@libc.org>
To: musl@lists.openwall.com
Subject: Tests needed for byte-based C locale
Date: Sat, 13 Jun 2015 22:53:42 -0400 [thread overview]
Message-ID: <20150614025342.GA14130@brightrain.aerifal.cx> (raw)
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.
next reply other threads:[~2015-06-14 2:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-14 2:53 Rich Felker [this message]
2015-06-14 4:21 ` Rich Felker
2015-06-14 12:13 ` Christian Neukirchen
2015-06-14 13:22 ` Rich Felker
2015-06-14 14:21 ` Christian Neukirchen
2015-06-14 14:37 ` Szabolcs Nagy
2015-06-14 15:09 ` Christian Neukirchen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150614025342.GA14130@brightrain.aerifal.cx \
--to=dalias@libc.org \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).