Re: [PATCH] Cleanup of JDBC character encoding - Mailing list pgsql-jdbc

From Bruce Momjian
Subject Re: [PATCH] Cleanup of JDBC character encoding
Date
Msg-id 200107121957.f6CJvuk27168@candle.pha.pa.us
Whole thread Raw
In response to [PATCH] Cleanup of JDBC character encoding  (Anders Bengtsson <ndrsbngtssn@yahoo.se>)
Responses Re: [PATCH] Cleanup of JDBC character encoding  (Anders Bengtsson <ndrsbngtssn@yahoo.se>)
List pgsql-jdbc
Your patch has been added to the PostgreSQL unapplied patches list at:

    http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.

> Hello,
>
> With this patch I've done an attempt to make the handling of character
> encoding in the JDBC driver a little clearer.
>
> * Cleans up the logic to select a JVM encoding for a backend encoding.
> * Makes the connection setup code easier to read.
> * Gathers character encoding and decoding in a single place.
> * Adds unit tests for encoding.
> * Introduces a new class, org.postgresql.core.Encoding, and the
> corresponding unit test class, org.postgresql.test.jdbc2.EncodingTest.
>
> It shouldn't change the external behavior of the driver.
>
> /Anders
>
> _____________________________________________________________________
> A n d e r s  B e n g t s s o n                   ndrsbngtssn@yahoo.se
> Stockholm, Sweden

Content-Description:

[ Attachment, skipping... ]

Content-Description:

[ Attachment, skipping... ]

Content-Description:

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-jdbc by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: Re: [PATCHES] Re: [PATCH] Cleanup of JDBC character encoding
Next
From: "Dejan Vucinic"
Date:
Subject: Resolved: can't write a BLOB, 7.1.2