Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 521408a

Browse files
committed
Don't use LC_MESSAGES value on WIN32, since it doesn't work.
Magnus Hagander
1 parent 9e83d73 commit 521408a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/initdb/initdb.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* Portions Copyright (c) 1994, Regents of the University of California
4040
* Portions taken from FreeBSD.
4141
*
42-
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.63 2004/10/17 21:04:41 petere Exp $
42+
* $PostgreSQL: pgsql/src/bin/initdb/initdb.c,v 1.64 2004/10/22 22:30:57 tgl Exp $
4343
*
4444
*-------------------------------------------------------------------------
4545
*/
@@ -1990,7 +1990,7 @@ setlocales(void)
19901990
if (strlen(lc_monetary) == 0 || !chklocale(lc_monetary))
19911991
lc_monetary = xstrdup(setlocale(LC_MONETARY, NULL));
19921992
if (strlen(lc_messages) == 0 || !chklocale(lc_messages))
1993-
#ifdef LC_MESSAGES
1993+
#if defined(LC_MESSAGES) && !defined(WIN32)
19941994
{
19951995
/* when available get the current locale setting */
19961996
lc_messages = xstrdup(setlocale(LC_MESSAGES, NULL));

0 commit comments

Comments
 (0)