Re: [INTERFACES] pgtcl large object read/write corrupts binary data

From: Brett Schwarz <brett_schwarz(at)yahoo(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, ljb <ljb220(at)mindspring(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] pgtcl large object read/write corrupts binary data
Date: 2003-10-30 21:13:38
Message-ID: 20031030211338.32691.qmail@web40607.mail.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-interfaces


--- Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> ljb <ljb220(at)mindspring(dot)com> writes:
> > [Using PostgreSQL-7.3.4 and -7.4beta5, Tcl-8.4.x.]
> > Binary data written to a Large Object with
> libpgtcl's pg_lo_write is
> > corrupted. Tcl is mangling the data - something
> to do with UTF-8
> > conversion. Example: 0x80 becomes 0xc2 0x80, and
> 0xff becomes 0xc3 0xbf.
> > ...
> > Proposed Patch: (I think this requires Tcl >=
> 8.1)
>
> Yeah, it appears that ByteArrayObj was added in Tcl
> 8.1. We were
> already requiring Tcl 8.0 of course. Does anyone
> think that it's
> important to continue support for Tcl 8.0.* in
> libpgtcl?
>

I don't think it is important to require Tcl 8.0
anymore. Tcl 8.0 came out in 1998. We might be able to
get rid of some of the version checks as well in the
code.

--brett

__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2003-10-30 21:38:43 Re: [BUGS] Autocomplete <TAB> on Postgres7.4beta5 not working?
Previous Message Rod Taylor 2003-10-30 18:27:33 Re: minor: ~ not resolved in psql

Browse pgsql-interfaces by date

  From Date Subject
Next Message Tom Lane 2003-10-31 00:20:06 Re: pgtcl large object read/write corrupts binary data
Previous Message creid 2003-10-30 15:11:23 PGEASY QUESTION