git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: bfe5c4b) | patch
Test PRI* macros even when we can't test NLS translation.
2025年12月16日 17:01:46 +0000 (12:01 -0500)
2025年12月16日 17:01:46 +0000 (12:01 -0500)
commit 462e2476525e71aa028c4a079bd77d2cac8a36b7
Test PRI* macros even when we can't test NLS translation.

Further research shows that the reason commit 7db6809ce failed
is that recent glibc versions short-circuit translation attempts
when LC_MESSAGES is 'C.<encoding>', not only when it's 'C'.
There seems no way around that, so we'll have to live with only
testing NLS when a suitable real locale is installed.

However, something can still be salvaged: it still seems like a
good idea to verify that the PRI* macros work as-expected even when
we can't check their translations (see f8715ec86 for motivation).
Hence, adjust the test to always run the ereport calls, and tweak
the parameter values in hopes of detecting any cases where there's
confusion about the actual widths of the parameters.

Discussion: https://postgr.es/m/1991599.1765818338@sss.pgh.pa.us
src/test/regress/expected/nls.out diff | blob | blame | history
src/test/regress/expected/nls_1.out diff | blob | blame | history
src/test/regress/expected/nls_2.out diff | blob | blame | history
src/test/regress/regress.c diff | blob | blame | history
src/test/regress/sql/nls.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /