Skip to content

Commit c1f1c1f

Browse files
committed
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
1 parent f8ca222 commit c1f1c1f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bin/initdb/initdb.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2339,7 +2339,10 @@ setlocales(void)
23392339
{
23402340
/* acquire default locale from the environment, if not specified */
23412341
if (icu_locale == NULL)
2342+
{
23422343
icu_locale = default_icu_locale();
2344+
printf(_("Using default ICU locale \"%s\".\n"), icu_locale);
2345+
}
23432346

23442347
/*
23452348
* In supported builds, the ICU locale ID will be checked by the

0 commit comments

Comments
 (0)