summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/locale (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Cope with recent ctype.h prefix changes.anton2024-02-051-5/+5
|
* Remove test of non-portable implementation details (whether wctype_tguenther2022-07-251-5/+1
| | | | | | | and wctrans_t values are locale-specific) so we can simplify our implementation in libc ok schwarze@
* Separate the macro for generating string test functionsschwarze2022-07-251-14/+22
| | | | | | | | | | for the macro generating test functions for other data types. This makes sense because both are sufficiently different. It also avoids a large number of false positive compiler warnings that guenther@ reported. OK guenther@
* Initialize the mutex before making us of it from many threads. Preventsanton2022-04-031-28/+23
| | | | | | | | a race in which one thread is currently initializing the mutex which is not an atomic operation whereas another thread tries to use it too early. With and ok schwarze@
* fix a bug that resulted in incomplete testing:schwarze2021-07-031-4/+4
| | | | end statements with ';' because ',' isn't enough
* cstyle in illumos noticed some weird syntax, which this fixes.dlg2020-03-091-4/+4
| | | | | | | | | | | | | | | | | | | some errx lines in if statements were terminated with commas, which caused the following statement to be considered part of the error handling. while it is bad style, ingo points out it was also a bug which which caused some tests in the code to be skipped. this reminds me of a haiku that Chris Pascoe (cpascoe@) had behind his desk: Also, that comma Should be a semi-colon. Cherry blossoms fall. this was found by Robert Mustacchi when porting the tests to illumos. ok schwarze@ stsp@ thank you robert.
* Link forgotten libc tests to the build.bluhm2020-01-131-2/+2
|
* Fix three bugs in setlocale(3):schwarze2018-03-291-2/+2
| | | | | | | | | | | 1. setlocale(LC_ALL, "A"); setlocale(LC_CTYPE, "T"); setlocale(LC_ALL, NULL); must return "A/T/A/A/A/A", not "A". Fix this by always initializing the LC_ALL entry of newgl to "" in dupgl(). Reported by Karl Williamson <public at khwilliamson dot com> on bugs@, thanks! 2. Do not leak newgl when strdup(3) fails in setlocale(3). 3. For setlocale(LC_ALL, "C/C/fr_FR.UTF-8/C/C/C"); correctly set _GlobalRuneLocale; i found 2. and 3. while looking at the code. Feedback on a buggy earlier version and OK martijn@.
* test locale priorities and overridesschwarze2017-08-161-1/+36
|
* test isalpha_l(3), tolower_l(3), wctype_l(3), iswctype_l(3),schwarze2017-08-161-4/+149
| | | | | wctrans_l(3), towctrans_l(3), wcscasecmp_l(3), wcsncasecmp_l(3), and strerror_l(3)
* test nl_langinfo_l(3), iswalpha_l(3), towupper_l(3)schwarze2017-08-162-3/+44
|
* refactor in preparation for testing more functions; no functional changeschwarze2017-08-152-114/+117
|
* first draft of tests for newlocale(3), duplocale(3), uselocale(3)schwarze2017-08-102-0/+268
|
* Fix all clang warnings in libc regress and cleanup some make files.bluhm2017-07-278-37/+23
|
* Add missing includes to avoid implicit function declarations.jsg2017-02-251-1/+2
|
* Enable mbrtowc(3) and wcrtomb(3) tests now that mbsinit(3) works.schwarze2016-09-051-2/+2
| | | | Related to locale/multibyte_citrus.c rev. 1.7.
* test wcrtomb(3)schwarze2016-09-042-0/+93
|
* test mbrtowc(3) in conjunction with mbsinit(3)schwarze2016-09-032-0/+93
|
* ISO8859-1 support has been removedguenther2015-08-231-8/+1
| | | | ok semarie@
* add setlocale testsemarie2015-07-071-1/+3
|
* add regress test for setlocale(3) and some relatedsemarie2015-07-072-0/+140
| | | | | | functions (MB_CUR_MAX, isalpha() for ctype. some tips from stsp@
* Enter the REGRESS_FULL target subdirs for clean, cleandir and obj targets.miod2014-07-031-2/+2
|
* Some tests are currently failing. Only run those if the REGRESS_FULLkettenis2013-08-011-1/+3
| | | | variable is set.
* regression test to check that isw* functions yield the same result asespie2005-08-113-0/+163
is* functions, and that basic mb->wchar conversion yields sensible results.