Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
Cc: iksss(dot)88(at)gmail(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter
Date: 2019-05-15 15:46:29
Message-ID: 13376.1557935189@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Daniel Verite" <daniel(at)manitou-mail(dot)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.

> 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Daniel Gustafsson 2019-05-15 16:23:13 Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter
Previous Message Daniel Verite 2019-05-15 15:31:45 Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter