From: Tom Lane <tgl@sss.pgh.pa.us>
To: Adam PAPAI <adam.papai@bsdsupportservice.hu>
Cc: pgsql-bugs@postgresql.org
Subject: Re: sort order (ORDER BY) hu_HU.UTF-8 locale with UTF-8 encoding is not working correctly on FreeBSD
Date: Sun, 06 Feb 2011 11:06:10 -0500
Message-ID: <6870.1297008370@sss.pgh.pa.us> (raw)
In-Reply-To: <4D4E76BD.5060706@bsdsupportservice.hu>
References: <4D4E76BD.5060706@bsdsupportservice.hu>
Adam PAPAI <adam.papai@bsdsupportservice.hu> writes:
> [ hu_HU.UTF-8 locale doesn't sort as expected on ]
> FreeBSD titanium 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Mon Jul 19 02:36:49
> UTC 2010 root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Do you get the expected sort ordering from the "sort" command either?
I'm betting not. This is not something Postgres controls -- we just
rely on the results of strcoll().
I don't know the state of affairs on FreeBSD for sure, but I do know
that the UTF-8 locales are fairly broken on Mac OS X, which is a BSD
derived platform too. It looks like nobody in BSD-land has bothered to
put in the work to make multibyte characters sort properly.
You might have better luck with hu_HU using a suitable LATINn character
set instead of UTF8. If that still doesn't do what you want, you might
have no choice but to move off BSD :-(
regards, tom lane
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, adam.papai@bsdsupportservice.hu
Subject: Re: sort order (ORDER BY) hu_HU.UTF-8 locale with UTF-8 encoding is not working correctly on FreeBSD
In-Reply-To: <6870.1297008370@sss.pgh.pa.us>
References: <4D4E76BD.5060706@bsdsupportservice.hu> <6870.1297008370@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox