summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/locale/setlocale/setlocale.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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@.
* Add missing includes to avoid implicit function declarations.jsg2017-02-251-1/+2
|
* ISO8859-1 support has been removedguenther2015-08-231-8/+1
| | | | ok semarie@
* add regress test for setlocale(3) and some relatedsemarie2015-07-071-0/+131
functions (MB_CUR_MAX, isalpha() for ctype. some tips from stsp@