summaryrefslogtreecommitdiffstats
path: root/tools/regression/lib/libc/locale
Commit message (Collapse)AuthorAgeFilesLines
* MFC r290532,r290561,r290843,r290844,r290845:ngie2015-11-2333-2494/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r290532: Integrate tools/regression/lib/libc/locale into the FreeBSD test suite as lib/libc/tests/locale Sponsored by: EMC / Isilon Storage Division r290561: Delete leftover printfs from when these were TAP tests Sponsored by: EMC / Isilon Storage Division r290843: Polish up the tests a bit more after projects/collation was merged to head Provide more meaningful diagnostic messages if LC_CTYPE can't be set properly instead of segfaulting, because setlocale returns NULL and strcmp(NULL, b) will always segfault Split up the testcases so one failing (in this case en_US.ISO8859-15) won't cause the rest of the testcases to be skipped Remove some unused variables Sponsored by: EMC / Isilon Storage Division r290844: Polish up iswctype_test - Split up the testcases into C locale and ja_JP.eucJP testcases. - Avoid a segfault in the event that setlocale fails, similar to r290843 - Replace `sizeof(x) / sizeof(*x)` pattern with `nitems(x)` Sponsored by: EMC / Isilon Storage Division r290845: Remove unused variables; sort by alignment where needed Sponsored by: EMC / Isilon Storage Division
* Add libiconv based versions of *c16*() and *c32*().ed2013-06-032-0/+75
| | | | | | | | | | | | | I initially thought wchar_t was locale independent, but this seems to be only the case on Linux. This means that we cannot depend on the *wc*() routines to implement *c16*() and *c32*(). Instead, use the Citrus libiconv that is part of libc. I'll see if there is anything I can do to make the existing functions somewhat useful in case the system is built without libiconv in the nearby future. If not, I'll simply remove the broken implementations. Reviewed by: jilles, gabor
* Add missing #includes, to keep Clang silent.ed2013-05-253-0/+3
|
* Add <uchar.h>.ed2013-05-213-1/+268
| | | | | | | | | | | | The <uchar.h> header, part of C11, adds a small number of utility functions for 16/32-bit "universal" characters, which may or may not be UTF-16/32. As our wchar_t is already ISO 10646, simply add light-weight wrappers around wcrtomb() and mbrtowc(). While there, also add (non-yet-standard) _l functions, similar to the ones we already have for the other locale-dependent functions. Reviewed by: theraven
* Remove regression tests for the obsolete rune interface.tjr2004-11-215-293/+1
|
* Switch over to a different, more flexible test output protocol that'snik2004-11-1134-20/+224
| | | | | | | | | | | | | | | | | | | | understood by Perl's Test::Harness module and prove(1) commands. Update README to describe the new protocol. The work's broken down into two main sets of changes. First, update the existing test programs (shell scripts and C programs) to produce output in the ok/not ok format, and to, where possible, also produce a header describing the number of tests that are expected to be run. Second, provide the .t files that actually run the tests. In some cases these are copies of, or very similar too, scripts that already existed. I've kept the old scripts around so that it's possible to verify that behaviour under this new system (in terms of whether or not a test fails) is identical to the behaviour under the old system. Add a TODO file.
* Add test programs for mbsnrtowcs() and wcsnrtombs().tjr2004-07-213-0/+386
|
* Oops, test error behaviour of wctrans(), not wctype().tjr2004-07-191-2/+2
|
* Test accumulation of partial multibyte characters in conversiontjr2004-05-111-0/+11
| | | | state objects.
* Reset internal conversion state after triggering conversion errors;tjr2004-04-073-3/+10
| | | | | the state is undefined according to the standards, and our undefined behaviour has changed.
* Add regression tests for sgetrune() and sputrune().tjr2003-10-303-1/+269
|
* Regression tests for wctype(), iswctype(), wctrans(), towctrans().tjr2003-06-063-1/+191
|
* Test that if the buffer argument (`s') to wcrtomb() is NULL thentjr2002-12-191-19/+15
| | | | | | the value of the supplied wide character is ignored and L'\0' is used instead. Remove incorrect comments about "internal buffer" since wcrtomb() does not have one (wctomb() does).
* Add test cases for btowc() and wctob() in multibyte locales.tjr2002-11-101-1/+14
|
* Test for the zero-length buffer bug corrected in mbrtowc.c revision 1.3.tjr2002-11-101-0/+7
|
* Add regression tests for mblen(), mbtowc(), wctomb(), mbstowcs() andtjr2002-11-096-1/+580
| | | | wcstombs(). These tests have already found two libc bugs.
* Add missing #includes of <stdio.h>. Correct a few typos in comments.tjr2002-11-063-5/+7
|
* Simplify by using inference rules properly.tjr2002-10-281-22/+10
|
* Add tests for btowc(), mbrlen(), mbsrtowcs() and wcsrtombs().tjr2002-10-265-2/+501
|
* Add regression tests for mbrtowc(3) and wcrtomb(3).tjr2002-10-263-0/+291
OpenPOWER on IntegriCloud