Skip site navigation (1) Skip section navigation (2)


From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Postgresql Hackers <pgsql-hackers(at)postgresql(dot)org>,pgsql-hackers-win32 <pgsql-hackers-win32(at)postgresql(dot)org>
Subject: setlocale
Date: 2003-10-08 16:56:24
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-hackerspgsql-hackers-win32
The MS runtime docs on setlocale() contaiun the following statement:

  At program startup, the equivalent of the following statement is executed:

  setlocale( LC_ALL, "C" );

Does this have any effect on us? Does it mean, as it appears to, that the locale will not be inherited from the parent? 

If so, I guess it could be got around by passing LC_COLLATE and LC_CTYPE arguments to postgres when running the bootstrap code. 

Of course, if I'm right, initdb would not pick up the locale from its caller, which might be ugly if that was what you expected.

(I'm new to this locale stuff - I know we have some experts out there).

Another question - will we want to internationalize initdb (I'm new to that, too :-) )




pgsql-hackers by date

Next:From: Bruce MomjianDate: 2003-10-08 17:28:53
Subject: Re: PostgreSQL vs. MySQL
Previous:From: Manfred SpraulDate: 2003-10-08 16:50:21
Subject: Re: IDE Drives and fsync

pgsql-hackers-win32 by date

Next:From: Peter EisentrautDate: 2003-10-08 17:38:30
Subject: Re: setlocale
Previous:From: Bruce MomjianDate: 2003-10-07 01:42:49
Subject: Re: new initdb.c available

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group