3 ms·
The “compliant solution” example for setlocale() is thread-unsafe, AFAICT. (I’m not aware of a safe solution other than “don’t use the text processing part of
by hsivonen 10y ago
The “compliant solution” example for setlocale() is thread-unsafe, AFAICT.
(I’m not aware of a safe solution other than “don’t use the text processing part of the C standard library, because its design is too wrong”.)
- wuch 10y agoThere is a thread-specific uselocale() in POSIX.1-2008.