diff options
author | Bruce Momjian | 2004-05-25 01:00:30 +0000 |
---|---|---|
committer | Bruce Momjian | 2004-05-25 01:00:30 +0000 |
commit | 228897774c08012ee280e5110856d908a6047697 (patch) | |
tree | 9121ddcf98b32bc4cf4e03bbe28da78f0ef176a7 /src/bin/scripts/common.c | |
parent | 244ee0c0f2b87656f7d1eefca7f46fc61c877fd2 (diff) |
Make the locale location relocatable.
Adjust get_*_path functions to be limited to MAXPGPATH.
Diffstat (limited to 'src/bin/scripts/common.c')
-rw-r--r-- | src/bin/scripts/common.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/bin/scripts/common.c b/src/bin/scripts/common.c index f14e0b206e1..715d7e3cdb1 100644 --- a/src/bin/scripts/common.c +++ b/src/bin/scripts/common.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/common.c,v 1.7 2004/04/19 17:42:59 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.8 2004/05/25 01:00:27 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -51,13 +51,9 @@ get_user_name(const char *progname) * Initialized NLS if enabled. */ void -init_nls(void) +init_nls(const char *argv0) { -#ifdef ENABLE_NLS - setlocale(LC_ALL, ""); - bindtextdomain("pgscripts", LOCALEDIR); - textdomain("pgscripts"); -#endif + set_pglocale(argv0, "pgscripts"); } |