Thread: BUG #1344: Locale problem

BUG #1344: Locale problem

From
"PostgreSQL Bugs List"
Date:
The following bug has been logged online:

Bug reference:      1344
Logged by:          Jan Kraljič

Email address:      jan@patware.si

PostgreSQL version: 7.4.6

Operating system:   Linux Debian

Description:        Locale problem

Details:

I cannot start postgres because unknow error. In log i can get this:
FATAL:  XX000: failed to initialize lc_messages to ""
LOCATION:  InitializeGUCOptions, guc.c:1867
------------------------------------------------
locale returns me this
...
LC_MESSAGES="sl_SI"
...
-------------------------------------------------
By default i set locale to sl_SI.iso88592

What to do?

Re: BUG #1344: Locale problem

From
Tom Lane
Date:
"PostgreSQL Bugs List" <pgsql-bugs@postgresql.org> writes:
> I cannot start postgres because unknow error. In log i can get this:
> FATAL:  XX000: failed to initialize lc_messages to ""

Are you sure that your LC_MESSAGES setting is compatible with the active
LC_CTYPE setting?  I'm not certain about this, but I think that some
platforms may reject the setlocale call if LC_MESSAGES implies a
different encoding (eg, utf8 vs latin-n) than LC_CTYPE does.

            regards, tom lane