newlocale(3): Add support for native complex locale

Operating Systems / DragonFlyBSD - zrj [gmail.com] - 30 December 2017 20:49 EST

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.

2c92c36023 newlocale(3): Add support for native complex locale.
lib/libc/locale/setlocale.c | 31 ++++++++++++++++++-------------
lib/libc/locale/xlocale.c | 38 +++++++++++++++++++++++++++++++++++---
2 files changed, 53 insertions(+), 16 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share