Re: newlocale(3) with base == (locale_t)0

RVP <[email protected]> Thu, 26 Mar 2026 11:26:38 +0000 (UTC)
Newsgroups gmane.os.netbsd.devel.userlevel
Message-ID <[email protected]>
On Thu, 26 Mar 2026, RVP wrote:

> So, the base is the _current_ locale, not POSIX, when base == (locale_t)0.
> NetBSD has the same behaviour, but, this isn't documented.
>

Should maybe do `src = &_lc_C_locale;' or equiv. here:

https://github.com/NetBSD/src/blob/trunk/lib/libc/locale/newlocale.c#L57

-RVP