diff options
author | Jeff Davis <jdavis@postgresql.org> | 2023-03-28 07:55:57 -0700 |
---|---|---|
committer | Jeff Davis <jdavis@postgresql.org> | 2023-03-28 08:24:43 -0700 |
commit | c1f1c1f87fd685981c45da528649c700b6ba0655 (patch) | |
tree | 75c03c2e825301b00d7de6defc2b30e8c9abb37c /src | |
parent | f8ca22295e994338259174e5c66b6b23e5d9b55f (diff) | |
download | postgresql-c1f1c1f87fd685981c45da528649c700b6ba0655.tar.gz postgresql-c1f1c1f87fd685981c45da528649c700b6ba0655.zip |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/initdb/initdb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 0acfd0fea29..6b20a962ecc 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 |