diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-10-22 22:30:57 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-10-22 22:30:57 +0000 |
| commit | 521408a56f29d3331ca4b29660be339a5135044e (patch) | |
| tree | 6553c4db526c46654e840e47847dee83b0afc02a | |
| parent | 9e83d73b6cf1e4280d438fb172b8b9c9233a656b (diff) | |
| download | postgresql-521408a56f29d3331ca4b29660be339a5135044e.tar.gz | |
Don't use LC_MESSAGES value on WIN32, since it doesn't work.
Magnus Hagander
| -rw-r--r-- | src/bin/initdb/initdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/initdb/initdb.c b/src/bin/initdb/initdb.c index f72efe46f6..b088604447 100644 --- a/src/bin/initdb/initdb.c +++ b/src/bin/initdb/initdb.c @@ -39,7 +39,7 @@ * Portions Copyright (c) 1994, Regents of the University of California * Portions taken from FreeBSD. * - * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.63 2004/10/17 21:04:41 petere Exp $ + * $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.64 2004/10/22 22:30:57 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -1990,7 +1990,7 @@ setlocales(void) if (strlen(lc_monetary) == 0 || !chklocale(lc_monetary)) lc_monetary = xstrdup(setlocale(LC_MONETARY, NULL)); if (strlen(lc_messages) == 0 || !chklocale(lc_messages)) -#ifdef LC_MESSAGES +#if defined(LC_MESSAGES) && !defined(WIN32) { /* when available get the current locale setting */ lc_messages = xstrdup(setlocale(LC_MESSAGES, NULL)); |
