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

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter
Дата
Msg-id CEE8B12D-B012-41D0-B93E-6FEA7B2FA513@yesql.se
обсуждение исходный текст
Ответ на BUG #15805: Problem with lower function for greek sigma (Σ) letter  (PG Bug reporting form <noreply@postgresql.org>)
Ответы Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter  (Alvaro Herrera <alvherre@2ndquadrant.com>)
Список pgsql-bugs
> On 15 May 2019, at 09:57, PG Bug reporting form <noreply@postgresql.org> wrote:
>
> The following bug has been logged on the website:
>
> Bug reference:      15805
> Logged by:          Sergey kuznetsov
> Email address:      iksss.88@gmail.com
> PostgreSQL version: 9.6.10
> Operating system:   linux
> Description:
>
> 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.

cheers ./daniel


Вложения

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Alessio Gennari
Дата:
Сообщение: Re: BUG #15800: Order by random in functions
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter