Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 509E72E01B5 for ; Wed, 12 Dec 2007 07:11:55 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 57710-04 for ; Wed, 12 Dec 2007 07:11:46 -0400 (AST) Received: from mxp.excelsarc.ro (unknown [89.38.26.199]) by postgresql.org (Postfix) with ESMTP id 80B0D2E0163 for ; Wed, 12 Dec 2007 07:11:51 -0400 (AST) Received: (qmail 32287 invoked from network); 12 Dec 2007 11:11:49 -0000 Received: from localhost (127.0.0.1) by localhost with ESMTPS (DHE-RSA-AES256-SHA encrypted); 12 Dec 2007 11:11:49 -0000 From: sulfinu@gmail.com To: Oliver Jowett Subject: Re: JDBC driver patch for non-ASCII users Date: Wed, 12 Dec 2007 13:11:48 +0200 User-Agent: KMail/1.9.7 Cc: pgsql-jdbc@postgresql.org References: <200712071448.21411.sulfinu@gmail.com> <200712111722.19122.sulfinu@gmail.com> <475F0FE0.6030902@opencloud.com> In-Reply-To: <475F0FE0.6030902@opencloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200712121311.48890.sulfinu@gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/76 X-Sequence-Number: 17931 On Wednesday 12 December 2007, Oliver Jowett wrote: > > I used the same Encoding.AUTHENTICATION_PHASE_ENCODING in all places for > > consistency and it doesn't harm in any way, since I make sure it is an > > ASCII extension. > > Ok, so this is an unnecessary change that we can discard? Oliver, for the third time, what happens in UnixCrypt is completely wrong in a non-ASCII environment. The crypt() methods try to mimic an OS function that executes on the server-side based on a password encoded in an encoding that is HIGHLY probably different from UTF-16, which is used by Java. The whole idea needs to be reconsidered. Make sure you read again my quote above. If you're so cautious with your disk space on the CVS server, then yes, by all means, you can discard the changes made at lines 293 and 302 in org.postgresql.core.v3.ConnectionFactoryImpl. > I actually think this patch as a whole is a lost cause (unfortunately, > more because you seem to be unwilling to take feedback on it than any > inherent problem). You might want to rephrase that, it doesn't look like English... (rhetorical) > Would a patch that did only UTF-8 encoding, as > suggested by Kris, handle the cases you need? No, it wouldn't. Nor am I keen on having my patch included in the main source tree. On the other hand it would be very helpful if you didn't waste my time on sterile discussions over marginal things. Please read the other posts in this thread and discover what the truely important issues are. Thanks.