patch: fix hopelessly broken decodeUTF8() method

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: patch: fix hopelessly broken decodeUTF8() method
Date: 2004-07-17 03:55:47
Message-ID: 40F8A343.9030000@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I managed to completely mangle decodeUTF8() in my changes that went into
build 303. It would incorrectly decode any multibyte UTF8
representation. Don't know what I was thinking there..

Anyway, here is a patch to repair the damage, and a testcase to check
that the driver reads/writes unicode strings correctly.

Thanks to Dario Fassi for helping diagnose this.

-O

Attachment Content-Type Size
pgjdbc-fix-utf8-decoding.txt text/plain 5.0 KB

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2004-07-17 04:09:54 revisiting transaction isolation
Previous Message Kris Jurka 2004-07-16 17:34:32 Re: SSL Problem