[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
nl_langinfo: fix multithread-safety bugs
From: |
Bruno Haible |
Subject: |
nl_langinfo: fix multithread-safety bugs |
Date: |
Tue, 17 Dec 2019 14:15:23 +0100 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-166-generic; KDE/5.18.0; x86_64; ; ) |
This series of patches makes gnulib's nl_langinfo replacement multithread-safe.
The nl_langinfo of the various platforms is already multithread-safe (as shown
by the new unit test, which I let run for 30 seconds on each platform) -
nothing to fix on this side.
2019-12-17 Bruno Haible <address@hidden>
langinfo: Document more details.
* doc/posix-headers/langinfo.texi: List platform details.
* doc/posix-functions/nl_langinfo.texi: Likewise.
nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
* lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
stack-allocated buffer to assemble each result and different static
buffers to return it.
* tests/test-nl_langinfo-mt.c: New file.
* modules/nl_langinfo-tests (Files): Add it.
(Depends-on): Add thread, nanosleep.
(Makefile.am): Build test-nl_langinfo-mt test.
nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
* lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
setlocale.
* m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
* modules/nl_langinfo (Depends-on): Add setlocale-null.
0001-langinfo-Document-more-details.patch
Description: Text Data
0002-nl_langinfo-Fix-multithread-safety-bug-on-mingw-and-.patch
Description: Text Data
0003-nl_langinfo-Fix-multithread-safety-bug-on-OpenBSD-3..patch
Description: Text Data
- nl_langinfo: fix multithread-safety bugs,
Bruno Haible <=