Re: Failed to initialize lc_messages to ''

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: jan(dot)berka(at)dreger(dot)de (Jan B(dot))
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Failed to initialize lc_messages to ''
Date: 2003-03-17 19:36:02
Message-ID: 7755.1047929762@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

jan(dot)berka(at)dreger(dot)de (Jan B.) writes:
> when I try to execute initdb I get the following errors:

> The database cluster will be initialized with locales:
> COLLATE: POSIX CTYPE: en_US MESSAGES: en_US
> MONETARY: en_US NUMERIC: en_US TIME: en_US

> creating template1 database in /opt/pgsql/data/base/1... Failed to
> initialize lc_messages to ''

What platform is this? You should complain to the relevant people about
their broken locale definitions. If they're going to set en_US as the
default locale then it darn well ought to work in all locale categories.

In the meantime, try
export LC_ALL=C
(or equivalent syntax if you use a C shell) before you run initdb.
You'll be better off running Postgres in C locale anyway.

regards, tom lane

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Jeremy Buchmann 2003-03-17 19:53:12 Re: Failed to initialize lc_messages to ''
Previous Message Murthy Kambhampaty 2003-03-17 16:24:45 Re: recommended platform