git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3e623eb) | patch
initdb: derive encoding from locale for ICU; similar to libc.
2023年3月10日 18:51:24 +0000 (10:51 -0800)
2023年3月10日 18:51:24 +0000 (10:51 -0800)
commit c45dc7ffbba2cb0bf180a0b9edadc22769143e7a
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
contrib/unaccent/meson.build diff | blob | blame | history
doc/src/sgml/ref/initdb.sgml diff | blob | blame | history
src/bin/initdb/initdb.c diff | blob | blame | history
src/bin/pg_upgrade/t/002_pg_upgrade.pl diff | blob | blame | history
src/bin/scripts/t/020_createdb.pl diff | blob | blame | history
src/test/icu/t/010_database.pl diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /