Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1YBPHi-0001Cr-HK for pgsql-bugs@arkaria.postgresql.org; Wed, 14 Jan 2015 14:51:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1YBPHi-0001k0-1S for pgsql-bugs@arkaria.postgresql.org; Wed, 14 Jan 2015 14:51:02 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YBPHh-0001ju-C9 for pgsql-bugs@postgresql.org; Wed, 14 Jan 2015 14:51:01 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1YBPHe-0002bJ-Ew for pgsql-bugs@postgresql.org; Wed, 14 Jan 2015 14:50:59 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id t0EEouQq020924; Wed, 14 Jan 2015 09:50:57 -0500 From: Tom Lane To: orsini@unive.it cc: pgsql-bugs@postgresql.org Subject: Re: BUG #12542: Incorrect behaviour of lower and upper on accented vocals in UTF8 In-reply-to: <20150114070858.2502.61521@wrigleys.postgresql.org> References: <20150114070858.2502.61521@wrigleys.postgresql.org> Comments: In-reply-to orsini@unive.it message dated "Wed, 14 Jan 2015 07:08:58 +0000" Date: Wed, 14 Jan 2015 09:50:56 -0500 Message-ID: <20923.1421247056@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org orsini@unive.it writes: > The following bug has been logged on the website: > Bug reference: 12542 > Logged by: Renzo Orsini > Email address: orsini@unive.it > PostgreSQL version: 9.3.5 > Operating system: Mac OS X > Description: > When lower and upper are applied to UTF8 strings with accented letters, they > have an incorrect behaviour, for instance, upper('Autorità') returns > 'AUTORITà' and not 'AUTORITÀ' as it should. Similarly, lower('AUTORITÀ') > returns lower('autoritÀ'). Yeah, unfortunately, this is a bug in Mac OS X itself: the UTF8 locales don't really work right. You might have better luck if you can adopt an ISO8859 encoding. There has been some discussion of working around OS X's deficiencies in this area, but it's a significant bit of work and hasn't been done yet. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs