Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 0450e7bee49f92a5d7419b50d6e6d60314bd1f3e https://github.com/Perl/perl5/commit/0450e7bee49f92a5d7419b50d6e6d60314bd1f3e Author: Karl Williamson <k...@cpan.org> Date: 2024-01-02 (Tue, 02 Jan 2024)
Changed paths: M locale.c Log Message: ----------- Define setlocale_i() on unsafe threaded builds On threaded Configurations where thread-safe locale handling is not available, perl automatically does a modicum of prevention of races by executing locale changes in a critical section, and copying the results to a thread-safe location. This commit defines setlocale_i() on such builds. This macro is used to bypass more complex handling required in fully thread-safe builds, and is used where the libc setlocale() can be wrapped such that it works for both querying what the existing locale is, and changing the locale.