Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id C779C1337B47 for ; Sun, 6 Feb 2011 06:30:21 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 51364-01 for ; Sun, 6 Feb 2011 10:30:14 +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 90394133798E for ; Sun, 6 Feb 2011 06:30:14 -0400 (AST) Received: from kazoku (localhost [127.0.0.1]) by mail.bsdsupportservice.hu (Postfix) with ESMTP id 47E4B7317C for ; Sun, 6 Feb 2011 11:27:08 +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 O0AjpgJ8Skdl for ; Sun, 6 Feb 2011 11:27:06 +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 0736673151 for ; Sun, 6 Feb 2011 11:27:05 +0100 (CET) Message-ID: <4D4E7832.4050400@bsdsupportservice.hu> Date: Sun, 06 Feb 2011 11:30:10 +0100 From: Adam PAPAI User-Agent: Postbox 2.1.3 (Macintosh/20110201) MIME-Version: 1.0 To: 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> In-Reply-To: <4D4E76BD.5060706@bsdsupportservice.hu> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.51 tagged_above=-5 required=5 tests=BAYES_05=-0.5, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201102/63 X-Sequence-Number: 29335 Adam PAPAI wrote: The correct encoding of the values are: INSERT INTO test (name) values ( 'a' ); INSERT INTO test (name) values ( 'á' ); INSERT INTO test (name) values ( 'b' ); INSERT INTO test (name) values ( 'c' ); INSERT INTO test (name) values ( 'd' ); INSERT INTO test (name) values ( 'e' ); INSERT INTO test (name) values ( 'é' ); INSERT INTO test (name) values ( 'f' ); INSERT INTO test (name) values ( 'g' ); INSERT INTO test (name) values ( 'h' ); I forgot to change the encoding of my mail client. test=# select * from test order by name asc; idn | name -----+------ 1 | a 3 | b 4 | c 5 | d 6 | e 8 | f 9 | g 10 | h 2 | á 7 | é (10 rows) -- Adam PAPAI BSD Support Service http://www.bsdsupportservice.hu E-mail: adam.papai@bsdsupportservice.hu Phone: +36 30 33-55-735 (Hungary)