From: Jeff Davis Date: Fri, 21 Apr 2023 20:11:18 +0000 (-0700) Subject: Fix initdb --no-locale. X-Git-Tag: REL_16_BETA1~150 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5cd1a5af4d17496a58678c8eb7ab792119c2d723;p=thirdparty%2Fpostgresql.git Fix initdb --no-locale. Discussion: https://postgr.es/m/878relf7cb.fsf@news-spur.riddles.org.uk Reported-by: Andrew Gierth --- diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index e244d930bf9..2c208ead019 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -3297,6 +3297,7 @@ main(int argc, char *argv[]) break; case 8: locale = "C"; + locale_provider = COLLPROVIDER_LIBC; break; case 9: pwfilename = pg_strdup(optarg);