tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

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



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


Home | Main Index | Thread Index | Old Index