localcharset: update support for OpenBSD

2019-12-21 Thread Bruno Haible
In recent OpenBSD (at least OpenBSD 6.0 to 6.5), in the "C" locale, nl_langinfo (CODESET) returns "US-ASCII", no longer "646". This needs to be mapped to the GNU canonical name, in module 'localcharset'. 2019-12-22 Bruno Haible localcharset: Update support for OpenBSD. * lib/l

pthread_sigmask: avoid test failure on NetBSD 8.0

2019-12-21 Thread Bruno Haible
On NetBSD 8.0, the test-pthread_sigmask2 fails: When the first argument is invalid, pthread_sigmask returns 0 instead of an error code. This is not worth coding a override in gnulib. 2019-12-21 Bruno Haible pthread_sigmask: Avoid test failure on NetBSD 8.0. * tests/test-pthre

threadlib: fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc

2019-12-21 Thread Bruno Haible
On FreeBSD 12.0, in a testdir configured with --enable-threads=isoc, the following tests fail (abort inside gl_thread_create): test-nl_langinfo-mt test-setlocale_null-mt-one test-setlocale_null-mt-all The reason is that these programs use the ISO C threads API but are not linked against libs

fix dependencies among thread modules

2019-12-21 Thread Bruno Haible
The general structure of the multithreading modules in gnulib is that we have three set of modules: pthread-*, sched_yield : POSIX API threads, threads-h, thrd, mtx, cnd, tss: ISO C API threadlib, thread, lock, cond, tls, yield: gnulib API, obeys --enable-threads configure option They

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: threadlib: remove unnecessary file (left over from 2019-07-06)

2019-12-21 Thread Bruno Haible
> Since the pth support was removed from module 'threadlib', it does not > need the config.rpath file any more. ... and it does not need the 'havelib' module any more either. 2019-12-21 Bruno Haible threadlib: Remove unused dependency (left over from 2019-07-06). * modules/th