Re: BUG #7913: TO_CHAR Function & Turkish collate

From: Euler Taveira <euler(at)timbira(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: a_dursun(at)hotmail(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #7913: TO_CHAR Function & Turkish collate
Date: 2013-03-05 04:30:03
Message-ID: 513574CB.2020305@timbira.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message renjith.pt 2013-03-05 06:35:19 BUG #7917: Error while migrating data
Previous Message eshkinkot 2013-03-04 22:51:46 BUG #7916: memory leak with array_agg