pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <daniel@yesql.se>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Daniel Verite <daniel@manitou-mail.org>
Cc: iksss.88@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter
Date: Wed, 15 May 2019 21:43:51 +0200
Message-ID: <4F264E45-7708-4CCF-81BE-CE5AF190E71F@yesql.se> (raw)
In-Reply-To: <13376.1557935189@sss.pgh.pa.us>
References: <5d80ac2d-3f1f-4d60-88a8-5602eb9978a3@manitou-mail.org>
	<13376.1557935189@sss.pgh.pa.us>

> On 15 May 2019, at 17:46, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 
> "Daniel Verite" <daniel@manitou-mail.org> 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.

Seems reasonable.  Maybe it warrants a mention in the docs on the string
function page since it may suprise users?

cheers ./daniel

Attachments:

casefolding.diff (application/octet-stream, 541B) download diff --git a/doc/src/sgml/func.sgml b/doc/src/sgml/func.sgml index bc2275c8fe..b2f5a49b29 100644 --- a/doc/src/sgml/func.sgml +++ b/doc/src/sgml/func.sgml @@ -1682,6 +1682,10 @@ </tgroup> </table> + <para> + The database must be compiled with ICU in order for contextual aware case-folding, + such as word-final characters. + </para> <para> Additional string manipulation functions are available and are listed in <xref linkend="functions-string-other"/>. Some of them are used internally to implement the

view thread (9+ messages)

Message-ID: <4F264E45-7708-4CCF-81BE-CE5AF190E71F@yesql.se>
Permalink:  ../4F264E45-7708-4CCF-81BE-CE5AF190E71F@yesql.se/
Also on:    postgresql.org/message-id/4F264E45-7708-4CCF-81BE-CE5AF190E71F@yesql.se

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: daniel@yesql.se, tgl@sss.pgh.pa.us, daniel@manitou-mail.org, iksss.88@gmail.com
  Subject: Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter
  In-Reply-To: <4F264E45-7708-4CCF-81BE-CE5AF190E71F@yesql.se>
  References: <5d80ac2d-3f1f-4d60-88a8-5602eb9978a3@manitou-mail.org> <13376.1557935189@sss.pgh.pa.us> <4F264E45-7708-4CCF-81BE-CE5AF190E71F@yesql.se>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox