aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/lib/libc/locale
Commit message (Collapse)AuthorAgeFilesLines
* Integrate tools/regression/lib/libc/locale into the FreeBSD test suiteEnji Cooper2015-11-0833-2494/+0
| | | | | | | | | | as lib/libc/tests/locale MFC after: 1 week Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=290532
* Add libiconv based versions of *c16*() and *c32*().Ed Schouten2013-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 Notes: svn path=/head/; revision=251314
* Add missing #includes, to keep Clang silent.Ed Schouten2013-05-253-0/+3
| | | | Notes: svn path=/head/; revision=250989
* Add <uchar.h>.Ed Schouten2013-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 Notes: svn path=/head/; revision=250883
* Remove regression tests for the obsolete rune interface.Tim J. Robbins2004-11-215-293/+1
| | | | Notes: svn path=/head/; revision=137960
* Switch over to a different, more flexible test output protocol that'sNik Clayton2004-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. Notes: svn path=/head/; revision=137587
* Add test programs for mbsnrtowcs() and wcsnrtombs().Tim J. Robbins2004-07-213-0/+386
| | | | Notes: svn path=/head/; revision=132499
* Oops, test error behaviour of wctrans(), not wctype().Tim J. Robbins2004-07-191-2/+2
| | | | Notes: svn path=/head/; revision=132391
* Test accumulation of partial multibyte characters in conversionTim J. Robbins2004-05-111-0/+11
| | | | | | | state objects. Notes: svn path=/head/; revision=129115
* Reset internal conversion state after triggering conversion errors;Tim J. Robbins2004-04-073-3/+10
| | | | | | | | the state is undefined according to the standards, and our undefined behaviour has changed. Notes: svn path=/head/; revision=128005
* Add regression tests for sgetrune() and sputrune().Tim J. Robbins2003-10-303-1/+269
| | | | Notes: svn path=/head/; revision=121732
* Regression tests for wctype(), iswctype(), wctrans(), towctrans().Tim J. Robbins2003-06-063-1/+191
| | | | Notes: svn path=/head/; revision=115894
* Test that if the buffer argument (`s') to wcrtomb() is NULL thenTim J. Robbins2002-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). Notes: svn path=/head/; revision=108069
* Add test cases for btowc() and wctob() in multibyte locales.Tim J. Robbins2002-11-101-1/+14
| | | | Notes: svn path=/head/; revision=106727
* Test for the zero-length buffer bug corrected in mbrtowc.c revision 1.3.Tim J. Robbins2002-11-101-0/+7
| | | | Notes: svn path=/head/; revision=106726
* Add regression tests for mblen(), mbtowc(), wctomb(), mbstowcs() andTim J. Robbins2002-11-096-1/+580
| | | | | | | wcstombs(). These tests have already found two libc bugs. Notes: svn path=/head/; revision=106686
* Add missing #includes of <stdio.h>. Correct a few typos in comments.Tim J. Robbins2002-11-063-5/+7
| | | | Notes: svn path=/head/; revision=106495
* Simplify by using inference rules properly.Tim J. Robbins2002-10-281-22/+10
| | | | Notes: svn path=/head/; revision=106080
* Add tests for btowc(), mbrlen(), mbsrtowcs() and wcsrtombs().Tim J. Robbins2002-10-265-2/+501
| | | | Notes: svn path=/head/; revision=105980
* Add regression tests for mbrtowc(3) and wcrtomb(3).Tim J. Robbins2002-10-263-0/+291
Notes: svn path=/head/; revision=105973