newlocale(3): Add support for native complex locale.
commit2c92c36023c84b792f84e6963178f9077d09add6
authorzrj <rimvydas.jasinskas@gmail.com>
Sat, 30 Dec 2017 18:32:25 +0000 (30 20:32 +0200)
committerzrj <zrj@dragonflybsd.org>
Sat, 30 Dec 2017 20:49:42 +0000 (30 22:49 +0200)
treedcc32566d2abdb888acac2f407633aefd8cd1238
parent6ad625fe0178ccdadf904a844ba8b84946bad124
newlocale(3): Add support for native complex locale.

Now newlocale(LC_ALL_MASK, setlocale(LC_ALL, NULL), NULL) should work
as intended even with combinations like LC_CTYPE=lv_LT LC_TIME=lt_LT.

While there, add compat support in setlocale(3) and fix a wrong git am
in previous newlocale(3) commit.
lib/libc/locale/setlocale.c
lib/libc/locale/xlocale.c