initdb: emit message when using default ICU locale.

Helpful to determine from test logs whether the locale came from the
environment or a command-line option.

Discussion: https://postgr.es/m/04182066-7655-344a-b8b7-040b1b2490fb%40enterprisedb.com
Reviewed-by: Peter Eisentraut
This commit is contained in:
Jeff Davis 2023-03-28 07:55:57 -07:00
parent f8ca22295e
commit c1f1c1f87f
1 changed files with 3 additions and 0 deletions

View File

@ -2339,7 +2339,10 @@ setlocales(void)
{
/* acquire default locale from the environment, if not specified */
if (icu_locale == NULL)
{
icu_locale = default_icu_locale();
printf(_("Using default ICU locale \"%s\".\n"), icu_locale);
}
/*
* In supported builds, the ICU locale ID will be checked by the