postgresql/src/bin/scripts
Jeff Davis c45dc7ffbb initdb: derive encoding from locale for ICU; similar to libc.
Previously, the default encoding was derived from the locale when
using libc; while the default was always UTF-8 when using ICU. That
would throw an error when the locale was not compatible with UTF-8.

This commit causes initdb to derive the default encoding from the
locale for both providers. If --no-locale is specified (or if the
locale is C or POSIX), the default encoding will be UTF-8 for ICU
(because ICU does not support SQL_ASCII) and SQL_ASCII for libc.

Per buildfarm failure on system "hoverfly" related to commit
27b62377b4.

Discussion: https://postgr.es/m/d191d5841347301a8f1238f609471ddd957fc47e.camel%40j-davis.com
2023-03-10 10:51:24 -08:00
..
po Update copyright for 2023 2023-01-02 15:00:37 -05:00
t initdb: derive encoding from locale for ICU; similar to libc. 2023-03-10 10:51:24 -08:00
.gitignore Remove createlang and droplang 2017-03-23 14:16:45 -04:00
Makefile Update copyright for 2023 2023-01-02 15:00:37 -05:00
clusterdb.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
common.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
common.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
createdb.c Allow tailoring of ICU locales with custom rules 2023-03-08 16:56:37 +01:00
createuser.c Fix handling of default option values in createuser 2023-03-06 14:16:32 +01:00
dropdb.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
dropuser.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
meson.build Update copyright for 2023 2023-01-02 15:00:37 -05:00
nls.mk Break up long GETTEXT_FILES lists 2023-03-08 15:05:43 +01:00
pg_isready.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
reindexdb.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
vacuumdb.c Add PROCESS_MAIN to VACUUM 2023-03-06 16:41:05 +09:00