Re: Locale support on Mac OS X

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Giorgio Valoti <giorgio_v(at)mac(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Locale support on Mac OS X
Date: 2004-04-16 16:11:50
Message-ID: 109.1082131910@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Giorgio Valoti <giorgio_v(at)mac(dot)com> writes:
> Further points:
> - The sort command gives the same (wrong) results.
> - GUI (Cocoa) applications give the expected sort.

Hm, that's interesting.

> Any clues? Should I assume that if sort does not give the expected
> result, postgresql will not be different?

Correct. I would consider it a bug if PG did not give the same sort
order as sort(1) for the same locale setting --- they'll both ultimately
depend on what the C library's strcoll() routine does. What you need to
look into is why strcoll acts differently from your Cocoa apps. Are you
certain you are really using the same locale setting for both cases?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2004-04-16 16:15:24 Re: Accessing RelOptInfo structure from the executor module
Previous Message Tom Lane 2004-04-16 15:54:03 Re: Indexing null dates