diff options
| author | Bruce Momjian <bruce@momjian.us> | 2004-05-25 01:00:30 +0000 |
|---|---|---|
| committer | Bruce Momjian <bruce@momjian.us> | 2004-05-25 01:00:30 +0000 |
| commit | 228897774c08012ee280e5110856d908a6047697 (patch) | |
| tree | 9121ddcf98b32bc4cf4e03bbe28da78f0ef176a7 /src/backend/main | |
| parent | 244ee0c0f2b87656f7d1eefca7f46fc61c877fd2 (diff) | |
| download | postgresql-228897774c08012ee280e5110856d908a6047697.tar.gz | |
Make the locale location relocatable.
Adjust get_*_path functions to be limited to MAXPGPATH.
Diffstat (limited to 'src/backend/main')
| -rw-r--r-- | src/backend/main/main.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/backend/main/main.c b/src/backend/main/main.c index 9216c2c4be..c93dc4ef4d 100644 --- a/src/backend/main/main.c +++ b/src/backend/main/main.c @@ -13,7 +13,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/main/main.c,v 1.81 2004/05/24 02:47:44 momjian Exp $ + * $PostgreSQL: pgsql/src/backend/main/main.c,v 1.82 2004/05/25 01:00:20 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -150,6 +150,8 @@ main(int argc, char *argv[]) * startup error messages to be localized. */ + set_pglocale(argv[0], "postgres"); + #ifdef WIN32 /* * Windows uses codepages rather than the environment, so we work around @@ -185,11 +187,6 @@ main(int argc, char *argv[]) setlocale(LC_NUMERIC, "C"); setlocale(LC_TIME, "C"); -#ifdef ENABLE_NLS - bindtextdomain("postgres", LOCALEDIR); - textdomain("postgres"); -#endif - /* * Skip permission checks if we're just trying to do --help or * --version; otherwise root will get unhelpful failure messages from |
