Re: PostgreSQL, Mac OS X and locales

From: Guido Neitzer <guido(dot)neitzer(at)pharmaline(dot)de>
To: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>
Subject: Re: PostgreSQL, Mac OS X and locales
Date: 2005-11-02 06:27:49
Message-ID: BF08ADAC-9BB6-40D7-8582-94AAB018E01E@pharmaline.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 01.11.2005, at 23:24 Uhr, Martijn van Oosterhout wrote:

> PostgreSQL should get the same results as the command-line sort for
> the
> same values of LC_COLLATE. However, the value is fixed at initdb time
> so maybe that's what's confusing you.

Yes, it gets the same results as sort.

I have tried several encoding/locale settings with initdb.

> However, MacOS X inherited FreeBSDs locale setup, which is fairly
> lame.
> They've made many improvements though so your problem should be
> fixable.
>
> BTW, you didn't actually say what locale you where using...

I mostly use UTF-8, so I have called initdb with "-E UTF-8 --
locale=de_DE.UTF-8".

The LC_COLLATE for this locale is a link pointing to "../la_LN.US-
ASCII/LC_COLLATE". This is why I don't think they paid much attention
to the correct sort order of umlauts.

But I have also tried ISO-5589-, ISO-8859-15 and others. No change.
May I take an LC_COLLATE file from another system and use this?

cug

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Mike Shelton 2005-11-02 06:33:39 Backend connection pooling memleak
Previous Message Jan Wieck 2005-11-02 05:28:17 Re: mysql replace in postgreSQL?