Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 7AE0A1337B8D for ; Sun, 6 Feb 2011 12:39:13 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 35556-08 for ; Sun, 6 Feb 2011 16:39:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.bsdsupportservice.hu (mail.bsdsupportservice.hu [194.38.104.120]) by mail.postgresql.org (Postfix) with ESMTP id 1712D1337B80 for ; Sun, 6 Feb 2011 12:39:05 -0400 (AST) Received: from kazoku (localhost [127.0.0.1]) by mail.bsdsupportservice.hu (Postfix) with ESMTP id 668EB731D2; Sun, 6 Feb 2011 17:35:57 +0100 (CET) X-Virus-Scanned: amavisd-new at mail.bsdsupportservice.hu Received: from mail.bsdsupportservice.hu ([127.0.0.1]) by kazoku (mail.bsdsupportservice.hu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uFjj5qpYpWLx; Sun, 6 Feb 2011 17:35:54 +0100 (CET) Received: from [192.168.1.123] (catv-80-98-164-126.catv.broadband.hu [80.98.164.126]) by mail.bsdsupportservice.hu (Postfix) with ESMTPA id 3A8D073195; Sun, 6 Feb 2011 17:35:54 +0100 (CET) Message-ID: <4D4ECEA3.5040203@bsdsupportservice.hu> Date: Sun, 06 Feb 2011 17:38:59 +0100 From: Adam PAPAI User-Agent: Postbox 2.1.3 (Macintosh/20110201) MIME-Version: 1.0 To: Tom Lane 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 References: <4D4E76BD.5060706@bsdsupportservice.hu> <6870.1297008370@sss.pgh.pa.us> In-Reply-To: <6870.1297008370@sss.pgh.pa.us> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/65 X-Sequence-Number: 29337 Tom Lane wrote: > Adam PAPAI 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 Hi Tom, I've tested the "sort" command. It fails too. Perhaps it's really with the *BSD and not with PostgreSQL. Thanks, -- Adam PAPAI BSD Support Service http://www.bsdsupportservice.hu E-mail: adam.papai@bsdsupportservice.hu Phone: +36 30 33-55-735 (Hungary)