Let's add a test for NLS translation of PRI* macros
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: pgsql-hackers@lists.postgresql.org
Date: 2025-12-08T19:23:16Z
Lists: pgsql-hackers
Attachments
- v3-0001-Add-a-regression-test-to-verify-that-NLS-translat.patch (text/x-diff) patch v3-0001
This was discussed a few weeks ago in [1], but I'm starting a new thread so as not to confuse things with the latest patches in that thread. The issue is that it seems like it'd be a good idea to have specific regression testing of whether translation of the <inttypes.h> PRI* macros works properly, since that is an aspect of gettext() behavior that didn't use to work everywhere. I don't know whether the attached will pass on Windows: we might not be able to assume that "es_ES" is the right LC_MESSAGES setting to use. But it works for me on Linux. regards, tom lane [1] https://www.postgresql.org/message-id/flat/20250331.152829.1921392690375275165.horikyota.ntt%40gmail.com
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Add a regression test to verify that NLS translation works.
- 8c498479d70f 19 (unreleased) landed
-
Support "j" length modifier in snprintf.c.
- f8715ec86608 19 (unreleased) landed