Fix initdb --no-locale.
authorJeff Davis <[email protected]>
Fri, 21 Apr 2023 20:11:18 +0000 (13:11 -0700)
committerJeff Davis <[email protected]>
Fri, 21 Apr 2023 20:11:18 +0000 (13:11 -0700)
Discussion: https://postgr.es/m/[email protected]
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);