diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-08-14 06:50:47 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-08-14 06:51:13 +0200 |
commit | fded4773eb60541c6e7dbcf09c9bcb1cd36a063b (patch) | |
tree | 9fcaad21285ee76a301ee56821863bcdb5cbfea8 /src/bin/initdb/initdb.c | |
parent | 96e7e1bc08919ceb34d95140834f0db94266da2e (diff) |
initdb: Remove obsolete locale handling
The method of passing LC_COLLATE and LC_CTYPE to the backend during
initdb is obsolete as of 61d967498802ab86d8897cb3c61740d7e9d712f6.
This can all be removed.
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/eeaf2f99-a1a6-8aca-3f43-9ab0b2fb112a%402ndquadrant.com
Diffstat (limited to 'src/bin/initdb/initdb.c')
-rw-r--r-- | src/bin/initdb/initdb.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index 551d379d859..88a261d9bda 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -1417,20 +1417,6 @@ bootstrap_template1(void) bki_lines = replace_token(bki_lines, "LC_CTYPE", escape_quotes_bki(lc_ctype)); - /* - * Pass correct LC_xxx environment to bootstrap. - * - * The shell script arranged to restore the LC settings afterwards, but - * there doesn't seem to be any compelling reason to do that. - */ - snprintf(cmd, sizeof(cmd), "LC_COLLATE=%s", lc_collate); - putenv(pg_strdup(cmd)); - - snprintf(cmd, sizeof(cmd), "LC_CTYPE=%s", lc_ctype); - putenv(pg_strdup(cmd)); - - unsetenv("LC_ALL"); - /* Also ensure backend isn't confused by this environment var: */ unsetenv("PGCLIENTENCODING"); |