mirror of https://github.com/postgres/postgres
Settings that ran the new test euc_kr.sql to completion would fail these
older src/pl tests. Use alternative expected outputs, for which psql
\gset and \if have reduced the maintenance burden. This fixes
"LANG=ko_KR.euckr LC_MESSAGES=C make check-world". (LC_MESSAGES=C fixes
IO::Pty usage in tests 010_tab_completion and 001_password.) That file
is new in commit c67bef3f32. Back-patch
to v14, like that commit.
Discussion: https://postgr.es/m/20260217184758.da.noahmisch@microsoft.com
Backpatch-through: 14
REL_17_STABLE
parent
df927d3d08
commit
4cb70f73ea
@ -0,0 +1,10 @@ |
||||
-- Test non-ASCII error messages |
||||
-- |
||||
-- This test case would fail if the database encoding is EUC_CN, EUC_JP, |
||||
-- EUC_KR, or EUC_TW, for lack of any equivalent to U+00A0 (no-break space) in |
||||
-- those encodings. However, testing with plain ASCII data would be rather |
||||
-- useless, so we must live with that. |
||||
SELECT getdatabaseencoding() IN ('EUC_CN', 'EUC_JP', 'EUC_KR', 'EUC_TW') |
||||
AS skip_test \gset |
||||
\if :skip_test |
||||
\quit |
||||
@ -0,0 +1,12 @@ |
||||
-- |
||||
-- Unicode handling |
||||
-- |
||||
-- This test case would fail if the database encoding is EUC_CN, EUC_JP, |
||||
-- EUC_KR, or EUC_TW, for lack of any equivalent to U+00A0 (no-break space) in |
||||
-- those encodings. However, testing with plain ASCII data would be rather |
||||
-- useless, so we must live with that. |
||||
-- |
||||
SELECT getdatabaseencoding() IN ('EUC_CN', 'EUC_JP', 'EUC_KR', 'EUC_TW') |
||||
AS skip_test \gset |
||||
\if :skip_test |
||||
\quit |
||||
@ -0,0 +1,12 @@ |
||||
-- |
||||
-- Unicode handling |
||||
-- |
||||
-- This test case would fail if the database encoding is EUC_CN, EUC_JP, |
||||
-- EUC_KR, or EUC_TW, for lack of any equivalent to U+00A0 (no-break space) in |
||||
-- those encodings. However, testing with plain ASCII data would be rather |
||||
-- useless, so we must live with that. |
||||
-- |
||||
SELECT getdatabaseencoding() IN ('EUC_CN', 'EUC_JP', 'EUC_KR', 'EUC_TW') |
||||
AS skip_test \gset |
||||
\if :skip_test |
||||
\quit |
||||
Loading…
Reference in new issue