aboutsummaryrefslogtreecommitdiff
path: root/src/bin/scripts/clusterdb.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-06-03 00:07:38 +0000
committerBruce Momjian <bruce@momjian.us>2004-06-03 00:07:38 +0000
commit687084333977dfc4318c470b405c55babd056710 (patch)
tree7d9155832550182368a492915bbf4552352e4f58 /src/bin/scripts/clusterdb.c
parent70f5a87ecc4cfa8810fb27ad55fa4904dcb40a6a (diff)
downloadpostgresql-687084333977dfc4318c470b405c55babd056710.tar.gz
postgresql-687084333977dfc4318c470b405c55babd056710.zip
Add PGETC (for pg_service.conf) and PGLOCALE (for locale dir)
environment variable processing to libpq. The patch also adds code to our client apps so we set the environment variable directly based on our binary location, unless it is already set. This will allow our applications to emit proper locale messages that are generated in libpq.
Diffstat (limited to 'src/bin/scripts/clusterdb.c')
-rw-r--r--src/bin/scripts/clusterdb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/scripts/clusterdb.c b/src/bin/scripts/clusterdb.c
index 47eab33661f..ca0b46ee24f 100644
--- a/src/bin/scripts/clusterdb.c
+++ b/src/bin/scripts/clusterdb.c
@@ -4,7 +4,7 @@
*
* Portions Copyright (c) 2002-2003, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/scripts/clusterdb.c,v 1.8 2004/06/01 02:54:09 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/scripts/clusterdb.c,v 1.9 2004/06/03 00:07:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -58,7 +58,7 @@ main(int argc, char *argv[])
char *table = NULL;
progname = get_progname(argv[0]);
- set_pglocale(argv[0], "pgscripts");
+ set_pglocale_pgservice(argv[0], "pgscripts");
handle_help_version_opts(argc, argv, "clusterdb", help);