Locale question

From: lsunley(at)mb(dot)sympatico(dot)ca
To: pgsql-hackers(at)PostgreSQL(dot)org
Subject: Locale question
Date: 2004-12-21 03:30:00
Message-ID: 0I9200K7426CTQ@l-daemon
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi

I have a few people in Europe trying out the rc1 port for OS/2 and they
have run into a problem with the locale settings

They have a locale set as de_DE_EURO and the initdb program really does
not like this because the setlocale(LC_MESSAGES, NULL) call returns a zero
length string. When the postgres code finds that the lc_messages does not
= the return from LC_CTYPE it appears to attempt to see if it is a known
language setup and something goes wrong.

When the local is de_DE everything works fine.

Can someone point me to where the locale string is tested to be a known
type, or explain how to track down the problem?

If I patch initdb to just use the return from LC_CTYPE as the value for
lc_messages the init conpletes and the database will start up OK

Should I be doing something else to fix this problem?

This apparently also happened with the 7.4.x postgres code as well.

Thanks

Lorne

--
-----------------------------------------------------------
lsunley(at)mb(dot)sympatico(dot)ca
-----------------------------------------------------------

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Mike G 2004-12-21 03:38:23 Re: Dump from cygwin directly to windows
Previous Message Abhijit Menon-Sen 2004-12-21 03:26:32 Re: postgres protocol dissector plugin for ethereal