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

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
Cc: iksss(dot)88(at)gmail(dot)com, PostgreSQL mailing lists <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter
Date: 2019-05-15 16:23:13
Message-ID: A27C1921-5A48-4D75-9551-0C4A505468E4@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> On 15 May 2019, at 14:20, Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> wrote:
>
> On 2019-May-15, Daniel Gustafsson wrote:
>
>>> I see unexpected behaviour of lower function for greek sigma letter Σ.
>>> According to wikipedia (https://en.wikipedia.org/wiki/Sigma) if this letter
>>> is in final word position, it should be ς in lowercase, and not σ. But
>>> PotgreSQL lower function returns σ, for example lower('ΔΗΜΟΤΕΣ ΦΑΙΣΤΟΥ') =
>>> "δημοτεσ φαιστου" instead of "δημοτες φαιστου". So if I try to pass this
>>> lower string from another part of a system (java code, for example) Postgre
>>> will not return this row cause it differs from java-generated one.
>>
>> This is indeed a bug, and a rare occurrence since AFAICT from ISO 30112 and
>> googling there is only a single case of word-final lowercasing which is this
>> sigma. The attached patch takes a stab at fixing this.
>
> Ummm ... isn't this a counterexample?
> https://hebrew4christians.com/Grammar/Unit_One/Final_Forms/final_forms.html

Hebrew doesn’t have case, so it doesn’t apply in this case.

cheers ./daniel

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Alvaro Herrera 2019-05-15 17:04:05 Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter
Previous Message Tom Lane 2019-05-15 15:46:29 Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter