Re: LC_COLLATE=es_MX in PgSQL 7.3.2

From: Alvaro Herrera <alvherre(at)dcc(dot)uchile(dot)cl>
To: Octavio Alvarez <alvarezp(at)octavio(dot)ods(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: LC_COLLATE=es_MX in PgSQL 7.3.2
Date: 2003-06-12 04:34:52
Message-ID: 20030612043452.GE4027@dcc.uchile.cl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Jun 11, 2003 at 04:40:42PM -0700, Octavio Alvarez wrote:
>
> Ohh! Look at this... I think query #4 does not handle the accents
> correctly, and it should behave almost like #5 does, except for the record
> with p = 'R' which should be at the top (if they were #4's results).

I don't understand. Are you saying that "ré" should sort the same as
"RÉ", and that the ambiguity should be solved by the next column? Well
if it's that, I'm afraid it's not the way the locale is defined. I wish
I could tell you how it is defined, but I don't really understand it.
You can see for yourself in:

http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/localedata/locales/es_ES?cvsroot=glibc

The rules seem pretty convoluted.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"El destino baraja y nosotros jugamos" (A. Schopenhauer)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2003-06-12 05:09:37 Re: Running two versions on same server
Previous Message Tom Lane 2003-06-12 04:32:48 Re: need a method to ping a running database