History log of /openbsd/regress/lib/libc/locale/setlocale/setlocale.c (Results 1 – 4 of 4)
Revision Date Author Comments
# f85ded84 29-Mar-2018 schwarze <schwarze@openbsd.org>

Fix three bugs in setlocale(3):
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

Fix three bugs in setlocale(3):
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@.

show more ...


# 9ae1fb7f 25-Feb-2017 jsg <jsg@openbsd.org>

Add missing includes to avoid implicit function declarations.


# c22f3b73 23-Aug-2015 guenther <guenther@openbsd.org>

ISO8859-1 support has been removed

ok semarie@


# 0059100e 07-Jul-2015 semarie <semarie@openbsd.org>

add regress test for setlocale(3) and some related
functions (MB_CUR_MAX, isalpha() for ctype.

some tips from stsp@