PostgreSQL, Mac OS X and locales - Mailing list pgsql-general

From Guido Neitzer
Subject PostgreSQL, Mac OS X and locales
Date
Msg-id EE44A61A-A63B-447E-9706-5857ED149B87@pharmaline.de
Whole thread Raw
Responses Re: PostgreSQL, Mac OS X and locales  (Martijn van Oosterhout <kleptog@svana.org>)
List pgsql-general
Hi.

I have a problem with the use of PostgreSQL on Mac OS X (10.4.x) and
selects with "order by". When there are german umlauts in the column
which is used to order, the sorted result is wrong.

As an example, I get:

a
b
ä

where it should be:

a
ä
b

Had someone here the same problem and solved it? I think the locales,
that come with Mac OS X are broken for this, as it seems they don't
provide the correct LC_COLLATE sort order.

I tried to figure out, how to get a correct LC_COLLATE file but
wasn't successful so far. Someone else?

I'm using the following configuration:

- Mac OS X (Server) 10.4.x and 10.3.x
- PostgreSQL 8.0.3
- initdb with encoding set to UTF-8 or ISO-Latin-1 (same results)

Some hints? Thank you!

cug
Attachment

pgsql-general by date:

Previous
From: Yonatan Ben-Nes
Date:
Subject: Re: SQL injection
Next
From: Martijn van Oosterhout
Date:
Subject: Re: SQL injection