Locale support is now on by default - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Locale support is now on by default
Date
Msg-id Pine.LNX.4.30.0204030044080.686-100000@peter.localdomain
Whole thread Raw
Responses Re: Locale support is now on by default
List pgsql-hackers
The determination of locale is now done as follows:

collate/ctype:

initdb --lc-collate, initdb --locale, LC_ALL, LC_COLLATE, LANG

messages/monetary/numeric/time:

Have GUC variables lc_messages, etc.  The default is "", which means to
inherit from the environment (or whatever setlocale() does with it).
However, initdb will initialize postgresql.conf containing assignments to
these variables determined as with collate/ctype above.  So the "real"
defaults are consistent with collate/ctype.

initdb --no-locale is the same as initdb --locale=C, for convenience.

Let's see if these rules end up making sense to everybody.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: "Christopher Kings-Lynne"
Date:
Subject: Odd psql \i behaviour
Next
From: Tom Lane
Date:
Subject: Re: Locale support is now on by default