From c1f1c1f87fd685981c45da528649c700b6ba0655 Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Tue, 28 Mar 2023 07:55:57 -0700 Subject: [PATCH] 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 --- src/bin/initdb/initdb.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 0acfd0fea2..6b20a962ec 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -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