Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f2dcf1a

Browse files
committed
pg_dump: Fix new ICU tests
ICU doesn't support some server encodings, so we need to exclude them if a non-supported encoding was set up.
1 parent 36a8881 commit f2dcf1a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/bin/pg_dump/t/002_pg_dump.pl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3881,6 +3881,10 @@
38813881
my $supports_lz4 = check_pg_config("#define USE_LZ4 1");
38823882
my $supports_gzip = check_pg_config("#define HAVE_LIBZ 1");
38833883
3884+
# ICU doesn't work with some encodings
3885+
my $encoding = $node->safe_psql('postgres', 'show server_encoding');
3886+
$supports_icu = 0 if $encoding eq 'SQL_ASCII';
3887+
38843888
# Create additional databases for mutations of schema public
38853889
$node->psql('postgres', 'create database regress_pg_dump_test;');
38863890
$node->psql('postgres', 'create database regress_public_owner;');

0 commit comments

Comments
 (0)