From 6c33054a0c4a05a185821fba1b82d3eda195b769 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Tue, 1 Jun 2004 02:54:09 +0000 Subject: Remove init_nls() functions, call set_pglocale() directly. Add locale to pg_ctl.c. --- src/bin/scripts/createuser.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/bin/scripts/createuser.c') diff --git a/src/bin/scripts/createuser.c b/src/bin/scripts/createuser.c index d3b395f6305..0d6e7bae354 100644 --- a/src/bin/scripts/createuser.c +++ b/src/bin/scripts/createuser.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/createuser.c,v 1.11 2004/05/25 01:00:27 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/createuser.c,v 1.12 2004/06/01 02:54:09 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -63,7 +63,8 @@ main(int argc, char *argv[]) PGresult *result; progname = get_progname(argv[0]); - init_nls(argv[0]); + set_pglocale(argv[0], "pgscripts"); + handle_help_version_opts(argc, argv, "createuser", help); while ((c = getopt_long(argc, argv, "h:p:U:WeqaAdDi:PEN", long_options, &optindex)) != -1) -- cgit v1.2.3