Re: BUG #7913: TO_CHAR Function & Turkish collate - Mailing list pgsql-bugs

From Euler Taveira
Subject Re: BUG #7913: TO_CHAR Function & Turkish collate
Date
Msg-id 513574CB.2020305@timbira.com
Whole thread Raw
In response to Re: BUG #7913: TO_CHAR Function & Turkish collate  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: BUG #7913: TO_CHAR Function & Turkish collate
List pgsql-bugs
On 03-03-2013 12:42, Tom Lane wrote:
> Anybody have an opinion on whether to back-patch such a fix?  It seems
> conceivable that somebody out there is relying on the current behavior.
> OTOH, I believe that only Turkish UTF8 locales exhibit this behavior
> (the single-byte-encoding code path in str_toupper acts differently for
> historical reasons).  So it's pretty inconsistent as it stands.
>
Nope. I'm not aware of the Turkish weird rules. Mea culpa. :(

As you suggested, s/str_toupper/pg_toupper/ in the else block (no TM) is the
right fix. I'm not aware of another locale that would break if we apply such a
change in a stable branch. Are you want me to post a fix?


--
   Euler Taveira de Oliveira - Timbira       http://www.timbira.com.br/
   PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento

pgsql-bugs by date:

Previous
From: gloria.evelis@gmail.com
Date:
Subject: BUG #7915: problema con postgis 2.0
Next
From: renjith.pt@galfar.com
Date:
Subject: BUG #7917: Error while migrating data