Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 1BDF2133740B for ; Mon, 18 Apr 2011 22:20:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 84874-03; Tue, 19 Apr 2011 01:20:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id 8F2B61337BE1; Mon, 18 Apr 2011 22:20:31 -0300 (ADT) Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 8AC202840A; Mon, 18 Apr 2011 21:20:31 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 2CDD8A3E4; Mon, 18 Apr 2011 21:20:31 -0400 (EDT) Date: Mon, 18 Apr 2011 21:20:30 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Mike Fowler cc: Tom Lane , Dave Cramer , Bernd Helmle , Steve Singer , PostgreSQL-development Hackers , pgsql-jdbc@postgresql.org Subject: Re: [JDBC] JDBC connections to 9.1 In-Reply-To: <4DAC6C47.4060307@mlfowler.com> Message-ID: References: <4DAC3D55.1080606@ca.afilias.info> <20799.1303134278@sss.pgh.pa.us> <1D1444218CDB28801BEEB27D@apophis.local> <4513A768D798800859BAA819@apophis.local> <22092.1303138627@sss.pgh.pa.us> <22630.1303140244@sss.pgh.pa.us> <23604.1303143135@sss.pgh.pa.us> <4DAC6C47.4060307@mlfowler.com> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/934 X-Sequence-Number: 186136 On Mon, 18 Apr 2011, Mike Fowler wrote: > On 18/04/11 17:12, Tom Lane wrote: >> Dave Cramer writes: >>> Well initially my concern was that people would have a challenge in >>> the case where they had to re-certify their application if we made >>> this change, however I realize they will have to do this anyway since >>> upgrading to 9.1 is what necessitates it. >> I don't see any backwards compatibility risk, if that's what you mean. >> Every backend release since 7.3 has treated client_encoding 'UTF8' and >> 'UNICODE' the same, and earlier releases didn't accept either one. >> >> regards, tom lane >> > > As there seems to be a consensus forming for fixing the JDBC driver, I've > taken the liberty do so at the risk of being shot down. The patch is fairly > straightforward, just changing UNICODE to UTF8 in a number of files including > the translation files. I've tested this against 9.1devel (HEAD) and 8.4.7. > For each database version I build and the tests running JDKs 1.4.2_19, > 1.5.0_22 and 1.6.0_2. All on 32-bit. > Thanks, applied, mostly. It's great to have a patch for a problem before you even know it exists. I didn't modify the .po files. I doubt this will change the adjacent translation wording, but directly patching .po files is only something to do in more dire circumstances (like needing to make a backpatch to an old branch that won't get translators to look at it before the next release.) I also discarded your changes to AbstractJdbc3Statement. Those Unicode mentions are from the interface Javadoc, so I left them alone. Kris Jurka