Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Specify database encoding in new ICU test.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 18 Mar 2022 17:26:04 +0000 (13:26 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 18 Mar 2022 17:26:04 +0000 (13:26 -0400)
Otherwise, the database encoding varies depending on the user's
environment, and so the test might fail depending on whether ICU
likes the encoding.  In particular, the test fails completely
if the prevailing locale is C.

src/test/icu/t/010_database.pl

index 4cc8907b421dcc94f5ee8e0a3b38427126b7fe1a..d50941b53d24af4e007c634c30ee5e2953beda18 100644 (file)
@@ -16,7 +16,7 @@ $node1->init;
 $node1->start;
 
 $node1->safe_psql('postgres',
-   q{CREATE DATABASE dbicu LOCALE_PROVIDER icu LOCALE 'C' ICU_LOCALE 'en-u-kf-upper' TEMPLATE template0});
+   q{CREATE DATABASE dbicu LOCALE_PROVIDER icu LOCALE 'C' ICU_LOCALE 'en-u-kf-upper' ENCODING 'UTF8' TEMPLATE template0});
 
 $node1->safe_psql('dbicu',
 q{