Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQw74-0003Qb-Pc for pgsql-bugs@arkaria.postgresql.org; Wed, 15 May 2019 15:46:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hQw73-00068F-7I for pgsql-bugs@arkaria.postgresql.org; Wed, 15 May 2019 15:46:37 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQw72-0005yZ-Sy for pgsql-bugs@lists.postgresql.org; Wed, 15 May 2019 15:46:37 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hQw6y-0007oF-K9 for pgsql-bugs@lists.postgresql.org; Wed, 15 May 2019 15:46:34 +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 x4FFkTug013377; Wed, 15 May 2019 11:46:29 -0400 From: Tom Lane To: "Daniel Verite" cc: iksss.88@gmail.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15805: Problem with lower function for greek sigma =?UTF-8?Q?(=CE=A3)?= letter In-reply-to: <5d80ac2d-3f1f-4d60-88a8-5602eb9978a3@manitou-mail.org> References: <5d80ac2d-3f1f-4d60-88a8-5602eb9978a3@manitou-mail.org> Comments: In-reply-to "Daniel Verite" message dated "Wed, 15 May 2019 17:31:45 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <13375.1557935189.1@sss.pgh.pa.us> Content-Transfer-Encoding: 8bit Date: Wed, 15 May 2019 11:46:29 -0400 Message-ID: <13376.1557935189@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Daniel Verite" writes: > PG Bug reporting form wrote: >> lower('ΔΗΜΟΤΕΣ ΦΑΙΣΤΟΥ') = >> "δημοτεσ φαιστου" instead of "δημοτες φαιστου" > With PostgreSQL version 10 or newer, you could use an ICU > locale. lower() would produce the expected result: Oh, if using ICU already fixes this, I think we might as well just say that you have to use ICU if you want the right behavior for such cases. > The libc library provides an API with character-by-character > case conversions (tolower/toupper), which is too limited > to deal with the above cases, and PostgreSQL basically > just uses this API. Right. regards, tom lane