]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add a regression test to verify that NLS translation works.
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 14 Dec 2025 16:55:18 +0000 (11:55 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 14 Dec 2025 16:55:18 +0000 (11:55 -0500)
commit8c498479d70f963533d57d8bb1b3a58e00fe0d03
treee5af51e4fed23901b05bc27517705b5712ab2989
parentb27e48213fbc1d0ff698be4ae5a0eb3e161d9172
Add a regression test to verify that NLS translation works.

We've never actually had a formal test for this facility.
It seems worth adding one now, mainly because we are starting
to depend on gettext() being able to handle the PRI* macros
from <inttypes.h>, and it's not all that certain that that
works everywhere.  So the test goes to a bit of effort to
check all the PRI* macros we are likely to use.

(This effort has indeed found one problem already, now fixed
in commit f8715ec86.)

Discussion: https://postgr.es/m/3098752.1765221796@sss.pgh.pa.us
Discussion: https://postgr.es/m/292844.1765315339@sss.pgh.pa.us
src/test/regress/expected/nls.out [new file with mode: 0644]
src/test/regress/expected/nls_1.out [new file with mode: 0644]
src/test/regress/meson.build
src/test/regress/nls.mk [new file with mode: 0644]
src/test/regress/parallel_schedule
src/test/regress/po/LINGUAS [new file with mode: 0644]
src/test/regress/po/es.po [new file with mode: 0644]
src/test/regress/po/meson.build [new file with mode: 0644]
src/test/regress/regress.c
src/test/regress/sql/nls.sql [new file with mode: 0644]