summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2018-03-29 16:34:25 +0000
committerschwarze <schwarze@openbsd.org>2018-03-29 16:34:25 +0000
commitf85ded84d67ce8e7f7589305fc9831335a4d3ad4 (patch)
treeb2dfd99372a7529594cdef7f46d2f2d2c787274e /sys
parentAdd support for legacy binding used in device trees for Marvell devices for (diff)
downloadwireguard-openbsd-f85ded84d67ce8e7f7589305fc9831335a4d3ad4.tar.xz
wireguard-openbsd-f85ded84d67ce8e7f7589305fc9831335a4d3ad4.zip
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@.
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions