Re: Thread-safe nl_langinfo() and localeconv()
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2024-08-19T21:46:10Z
Lists: pgsql-hackers
On Tue, Aug 13, 2024 at 5:45 PM Thomas Munro <thomas.munro@gmail.com> wrote: > Over on the discussion thread about remaining setlocale() work[1], I > wrote out some long boring theories about $SUBJECT. Just as an FYI/curiosity, I converted my frustrations with localeconv() into a request[1] that POSIX consider standardising one of the interfaces that doesn't suck, and the reaction seems so far positive. Of course that doesn't really have any actionable consequences on any relevant time frame, even if eventually successful, and we can already use the saner interfaces on the systems most of us really care about, but still... it's nice to think that the pessimistic fallback code (really only used by Solaris and maybe AIX) could eventually be redundant if it goes somewhere... [1] https://www.mail-archive.com/austin-group-l@opengroup.org/msg12850.html
Commits
-
Fix "‘static’ is not at beginning of declaration" warning
- 116e851db5b3 18.0 landed
-
Use thread-safe strftime_l() instead of strftime().
- 890fc826c91f 18.0 landed
-
Provide thread-safe pg_localeconv_r().
- b98be8a2a2a6 18.0 landed
-
Harmonize MinGW CODESET lookup with MSVC.
- bf3401fe813a 18.0 landed
-
Include <xlocale.h> for macOS, take II.
- 2488058dc356 18.0 landed
-
Use thread-safe nl_langinfo_l(), not nl_langinfo().
- 35eeea623022 18.0 landed
-
All POSIX systems have langinfo.h and CODESET.
- 14c648ff0094 18.0 landed