]> Savannah Git Hosting - gnulib.git/commit
hard-locale: Make multithread-safe.
authorBruno Haible <bruno@clisp.org>
Wed, 18 Dec 2019 10:42:21 +0000 (11:42 +0100)
committerBruno Haible <bruno@clisp.org>
Wed, 18 Dec 2019 10:42:21 +0000 (11:42 +0100)
commit25d476a2b79ab1cfc9c34e162bf5a69159ed6952
tree6c4b05e31fae20e8f099f476d7801d7a3a7cb0ae
parent9b3418df8ef2a9ab70f8dab5790ce3ab729c2233
hard-locale: Make multithread-safe.

* lib/hard-locale.h (hard_locale): Move documentation to here.
* lib/hard-locale.c: Don't include <stdlib.h>.
(GLIBC_VERSION): Remove macro.
(hard_locale): Assume that all systems name the "C" and "POSIX" locales
"C" or "POSIX". Invoke setlocale_null instead of setlocale.
* modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
(configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
(Link): New section.
* modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
$(LIB_HARD_LOCALE).
ChangeLog
lib/hard-locale.c
lib/hard-locale.h
modules/hard-locale
modules/hard-locale-tests