postgresql/src/bin/initdb
Jeff Davis 1671f990dd Validate ICU locales.
For ICU collations, ensure that the locale's language exists in ICU,
and that the locale can be opened.

Basic validation helps avoid minor mistakes and misspellings, which
often fall back to the root locale instead of the intended
locale. It's even more important to avoid such mistakes in ICU
versions 54 and earlier, where the same (misspelled) locale string
could fall back to different locales depending on the environment.

Discussion: https://postgr.es/m/11b1eeb7e7667fdd4178497aeb796c48d26e69b9.camel@j-davis.com
Discussion: https://postgr.es/m/df2efad0cae7c65180df8e5ebb709e5eb4f2a82b.camel@j-davis.com
Reviewed-by: Peter Eisentraut
2023-03-28 16:34:29 -07:00
..
po meson: add install-{quiet, world} targets 2023-03-23 21:20:18 -07:00
t Validate ICU locales. 2023-03-28 16:34:29 -07:00
.gitignore Move wchar.c and encnames.c to src/common/. 2020-01-16 15:58:55 -05:00
Makefile Use ICU by default at initdb time. 2023-03-09 10:52:41 -08:00
findtimezone.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
initdb.c Validate ICU locales. 2023-03-28 16:34:29 -07: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