pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: sulfinu@gmail.com
To: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC driver patch for non-ASCII users
Date: Wed, 12 Dec 2007 13:11:48 +0200
Message-ID: <200712121311.48890.sulfinu@gmail.com> (raw)
In-Reply-To: <475F0FE0.6030902@opencloud.com>
References: <200712071448.21411.sulfinu@gmail.com>
	<200712111722.19122.sulfinu@gmail.com>
	<475F0FE0.6030902@opencloud.com>

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.



view thread (17+ messages)  latest in thread

Message-ID: <200712121311.48890.sulfinu@gmail.com>
Permalink:  ../200712121311.48890.sulfinu@gmail.com/
Also on:    postgresql.org/message-id/200712121311.48890.sulfinu@gmail.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-jdbc@postgresql.org
  Cc: sulfinu@gmail.com, oliver@opencloud.com
  Subject: Re: JDBC driver patch for non-ASCII users
  In-Reply-To: <200712121311.48890.sulfinu@gmail.com>
  References: <200712071448.21411.sulfinu@gmail.com> <200712111722.19122.sulfinu@gmail.com> <475F0FE0.6030902@opencloud.com> <200712121311.48890.sulfinu@gmail.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