Re: pgsql: Use ICU by default at initdb time.
Jeff Davis <pgsql@j-davis.com>
From: Jeff Davis <pgsql@j-davis.com>
To: Jeff Davis <jdavis@postgresql.org>, pgsql-committers@lists.postgresql.org
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Date: 2023-03-10T02:26:34Z
Lists: pgsql-hackers
Attachments
- v1-0001-initdb-obtain-encoding-from-environment-by-defaul.patch (text/x-patch) patch v1-0001
On Thu, 2023-03-09 at 19:11 +0000, Jeff Davis wrote: > Use ICU by default at initdb time. I'm seeing a failure on hoverfly: https://buildfarm.postgresql.org/cgi-bin/show_stage_log.pl?nm=hoverfly&dt=2023-03-09%2021%3A51%3A45&stg=initdb-en_US.8859-15 That's because ICU always uses UTF-8 by default. ICU works just fine with many other encodings; is there a reason it doesn't take it from the environment just like for provider=libc? Of course, we still need to default to UTF-8 when the encoding from the environment isn't supported by ICU. Patch attached. Requires a few test fixups to adapt. -- Jeff Davis PostgreSQL Contributor Team - AWS
Commits
-
initdb: derive encoding from locale for ICU; similar to libc.
- c45dc7ffbba2 16.0 landed
-
Use ICU by default at initdb time.
- 27b62377b47f 16.0 cited