From 687084333977dfc4318c470b405c55babd056710 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 3 Jun 2004 00:07:38 +0000 Subject: 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. --- src/bin/scripts/createlang.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bin/scripts/createlang.c') diff --git a/src/bin/scripts/createlang.c b/src/bin/scripts/createlang.c index 4c7a41e4d02..3e3fa762f50 100644 --- a/src/bin/scripts/createlang.c +++ b/src/bin/scripts/createlang.c @@ -5,7 +5,7 @@ * Portions Copyright (c) 1996-2003, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.11 2004/06/01 02:54:09 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/createlang.c,v 1.12 2004/06/03 00:07:38 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -61,7 +61,7 @@ main(int argc, char *argv[]) PGresult *result; progname = get_progname(argv[0]); - set_pglocale(argv[0], "pgscripts"); + set_pglocale_pgservice(argv[0], "pgscripts"); handle_help_version_opts(argc, argv, "createlang", help); -- cgit v1.2.3