pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: iksss.88@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter
Date: Wed, 15 May 2019 08:20:48 -0400
Message-ID: <20190515122048.GA12876@alvherre.pgsql> (raw)
In-Reply-To: <CEE8B12D-B012-41D0-B93E-6FEA7B2FA513@yesql.se>

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

-- 
Álvaro Herrera                https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services





view thread (9+ messages)  latest in thread

Message-ID: <20190515122048.GA12876@alvherre.pgsql>
Permalink:  ../20190515122048.GA12876@alvherre.pgsql/
Also on:    postgresql.org/message-id/20190515122048.GA12876@alvherre.pgsql

 · 

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: alvherre@2ndquadrant.com, daniel@yesql.se
  Subject: Re: BUG #15805: Problem with lower function for greek sigma (Σ) letter
  In-Reply-To: <20190515122048.GA12876@alvherre.pgsql>
  References: <CEE8B12D-B012-41D0-B93E-6FEA7B2FA513@yesql.se> <20190515122048.GA12876@alvherre.pgsql>

* 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