pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Euler Taveira <euler@timbira.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: a_dursun@hotmail.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #7913: TO_CHAR Function & Turkish collate
Date: Tue, 05 Mar 2013 01:30:03 -0300
Message-ID: <513574CB.2020305@timbira.com> (raw)
In-Reply-To: <16008.1362325379@sss.pgh.pa.us>
References: <E1UBlpO-0007X0-NU@wrigleys.postgresql.org>
	<16008.1362325379@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-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


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (7+ messages)  latest in thread

Message-ID: <513574CB.2020305@timbira.com>
Permalink:  ../513574CB.2020305@timbira.com/
Also on:    postgresql.org/message-id/513574CB.2020305@timbira.com

 · 

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: euler@timbira.com, tgl@sss.pgh.pa.us, a_dursun@hotmail.com
  Subject: Re: BUG #7913: TO_CHAR Function & Turkish collate
  In-Reply-To: <513574CB.2020305@timbira.com>
  References: <E1UBlpO-0007X0-NU@wrigleys.postgresql.org> <16008.1362325379@sss.pgh.pa.us> <513574CB.2020305@timbira.com>

* 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