mailing list of musl libc
 help / color / mirror / code / Atom feed
* Tests needed for byte-based C locale
@ 2015-06-14  2:53 Rich Felker
  2015-06-14  4:21 ` Rich Felker
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Rich Felker @ 2015-06-14  2:53 UTC (permalink / raw)
  To: musl

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-06-14 15:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-14  2:53 Tests needed for byte-based C locale Rich Felker
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

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).