Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCjWP-0006OB-89 for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Mar 2013 04:30:38 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UCjWO-0006ky-Oo for pgsql-bugs@arkaria.postgresql.org; Tue, 05 Mar 2013 04:30:36 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UCjWN-0006kt-VU for pgsql-bugs@postgresql.org; Tue, 05 Mar 2013 04:30:36 +0000 Received: from oproxy5-pub.bluehost.com ([67.222.38.55]) by magus.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UCjWJ-0006ZF-Rw for pgsql-bugs@postgresql.org; Tue, 05 Mar 2013 04:30:34 +0000 Received: (qmail 9033 invoked by uid 0); 5 Mar 2013 04:30:07 -0000 Received: from unknown (HELO host159.hostmonster.com) (74.220.207.159) by cpoproxy2.bluehost.com with SMTP; 5 Mar 2013 04:30:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=timbira.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=3E94nJm57MhkjcDnExNrLIUuKX2FFnH96bntscEIj28=; b=g6OV29Q1SGsHRwnLk/JDNW/J7sjMzJAmODFlG2U3Dbjb+VsXMNoVTLIoOG8vfmQJ8Lb9LkS23mL09gVVMTNacH6gtlgMnIosqycIIx34Ih2bFkEBTkjouuVy3hFTSBgH; Received: from [201.2.91.229] (port=60767 helo=[10.3.2.3]) by host159.hostmonster.com with esmtpsa (TLSv1:CAMELLIA256-SHA:256) (Exim 4.80) (envelope-from ) id 1UCjVu-0004Yr-QC; Mon, 04 Mar 2013 21:30:07 -0700 Message-ID: <513574CB.2020305@timbira.com> Date: Tue, 05 Mar 2013 01:30:03 -0300 From: Euler Taveira Organization: Timbira User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.12) Gecko/20130116 Icedove/10.0.12 MIME-Version: 1.0 To: Tom Lane CC: a_dursun@hotmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #7913: TO_CHAR Function & Turkish collate References: <16008.1362325379@sss.pgh.pa.us> In-Reply-To: <16008.1362325379@sss.pgh.pa.us> X-Enigmail-Version: 1.4.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Identified-User: {1651:host159.hostmonster.com:timbirac:timbira.com} {sentby:smtp auth 201.2.91.229 authed with euler@timbira.com} X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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