Re: setlocale: make calls with NULL argument multithread-safe

2020-01-01 Thread Bruno Haible
On 2019-12-18 I wrote: > Use of setlocale(), with the gnulib override, now requires linking > with $(LIB_SETLOCALE) - to avoid link errors on AIX. I see such a link error on AIX: xlC -q64 -qthreaded -qtls -DHAVE_CONFIG_H -I. -I../../gltests -I.. -DGNULIB_STRICT_CHECKING=1 -DIN_GNULIB_TESTS=1 -I

Re: setlocale: make calls with NULL argument multithread-safe

2019-12-21 Thread Bruno Haible
> * modules/setlocale-tests (Makefile.am): Link the test programs with > $(LIB_SETLOCALE). > ... > * modules/nl_langinfo-tests (Makefile.am): Likewise. I missed one test program that also calls setlocale(). 2019-12-21 Bruno Haible nl_langinfo tests: Fix link error (

Re: setlocale: make calls with NULL argument multithread-safe

2019-12-18 Thread Bruno Haible
Part of this new code in setlocale.c would also be useful for localename.c. I'm therefore moving it to module 'setlocale-null'. At the same time, I'm renaming the function setlocale_null to setlocale_null_r (in analogy with getlogin_r, ttyname_r, ptsname_r). 2019-12-18 Bruno Haible se

setlocale: make calls with NULL argument multithread-safe

2019-12-18 Thread Bruno Haible
too small in a particular use-case, users of module 'setlocale-null' can request a larger buffer, while users module 'setlocale' cannot do this (without modifying the source code). 2019-12-18 Bruno Haible setlocale: Make calls with NULL argument multithread