Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 0AAB9475E20 for ; Mon, 23 Sep 2002 10:26:51 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id E9D59475D84 for ; Mon, 23 Sep 2002 10:26:45 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.5/8.12.5) with ESMTP id g8NEQk5D021336; Mon, 23 Sep 2002 10:26:46 -0400 (EDT) To: thorbjorn.eriksson@ec.se Cc: pgsql-sql@postgresql.org Subject: Re: Stripping white-space in SELECT statments In-reply-to: References: Comments: In-reply-to =?iso-8859-1?Q?Thorbj=F6rn_Eriksson?= message dated "Mon, 23 Sep 2002 16:28:41 +0200" Date: Mon, 23 Sep 2002 10:26:46 -0400 Message-ID: <21335.1032791206@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200209/263 X-Sequence-Number: 9540 =?iso-8859-1?Q?Thorbj=F6rn_Eriksson?= writes: > Thank's Tom Lane & Stephan Szabo for pointing out the problem to me. > After some testing it turned out that the swedish locale, 'sv_SE', doesn't > handle sorting spaces as expected, which probably made the SELECT fail. On > the other hand, if I use the 'C' locale, the SELECT works but not the sort > order of the swedish characters 'едц'. > Does anyone know a solution to this problem, or could give me a hint? I think you are going to have to create a custom locale definition that sorts the accented characters as you wish, but does not have the strange rules about whitespace. I don't know enough about locale definitions to give advice on how ... but I'll bet after a couple hours study you could do it by copying just the parts you want of the existing Swedish locale definition. regards, tom lane