Re: RPM init-script: Why the locale setting?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Troels Arvin <troels(at)arvin(dot)dk>
Cc: pgsql-general(at)postgresql(dot)org, Lamar Owen <lowen(at)pari(dot)edu>
Subject: Re: RPM init-script: Why the locale setting?
Date: 2004-04-05 02:50:11
Message-ID: 29427.1081133411@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Troels Arvin <troels(at)arvin(dot)dk> writes:
> In the init-script contained in the RPMs downloadable from the PostgreSQL
> site (I checked the one for Fedora), an explicit locale is set before
> running initdb. - And the explicit locale is not "C".

Only if you don't have a sysconfig file:

# Just in case no locale was set, use en_US
[ ! -f /etc/sysconfig/i18n ] && echo "LANG=en_US" > $PGDATA/../initdb.i18n

I agree though that it seems like a bad choice to default to en_US
rather than C. Lamar, any reason why it's like that?

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Bruce Momjian 2004-04-05 04:22:03 Re: thread_test.c problems
Previous Message Bruce Momjian 2004-04-05 02:23:24 Re: thread_test.c problems