From 87914e708aabb7e2cd9045fa95b4fed99ca458ec Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 22 Mar 2019 23:33:31 +0100 Subject: [PATCH] Make subscription collation test work independent of locale We need to set the database to UTF8 encoding so that the test can use Unicode escapes. --- src/test/subscription/t/012_collation.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/test/subscription/t/012_collation.pl b/src/test/subscription/t/012_collation.pl index 6c480de9c1..9f79e96106 100644 --- a/src/test/subscription/t/012_collation.pl +++ b/src/test/subscription/t/012_collation.pl @@ -16,11 +16,11 @@ else } my $node_publisher = get_new_node('publisher'); -$node_publisher->init(allows_streaming => 'logical'); +$node_publisher->init(allows_streaming => 'logical', extra => [ '--locale=C', '--encoding=UTF8' ]); $node_publisher->start; my $node_subscriber = get_new_node('subscriber'); -$node_subscriber->init(allows_streaming => 'logical'); +$node_subscriber->init(allows_streaming => 'logical', extra => [ '--locale=C', '--encoding=UTF8' ]); $node_subscriber->start; my $publisher_connstr = $node_publisher->connstr . ' dbname=postgres';