]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Fix initdb --no-locale.
authorJeff Davis <jdavis@postgresql.org>
Fri, 21 Apr 2023 20:11:18 +0000 (13:11 -0700)
committerJeff Davis <jdavis@postgresql.org>
Fri, 21 Apr 2023 20:11:18 +0000 (13:11 -0700)
Discussion: https://postgr.es/m/878relf7cb.fsf@news-spur.riddles.org.uk
Reported-by: Andrew Gierth
src/bin/initdb/initdb.c

index e244d930bf9ad9bf479dfc6e8c58dc7d55b9a809..2c208ead019b52ee456ec516c7344898c8e7a452 100644 (file)
@@ -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);