Skip site navigation (1) Skip section navigation (2)

Re: pgtcl large object read/write corrupts binary data

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: ljb <ljb220(at)mindspring(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: pgtcl large object read/write corrupts binary data
Date: 2003-10-29 18:33:09
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-bugspgsql-interfaces
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?

			regards, tom lane

In response to


pgsql-bugs by date

Next:From: Dror MatalonDate: 2003-10-29 19:59:26
Subject: Re: PANIC: can't juggle and compress too
Previous:From: Tom LaneDate: 2003-10-29 18:11:04
Subject: Re: Minor beta buglet "unrecognized node type: 302"

pgsql-interfaces by date

Next:From: Jason E. StewartDate: 2003-10-30 09:12:37
Subject: Re: DBD::Pg 1.22 fatal bug / patch
Previous:From: Cobus CarstensDate: 2003-10-28 05:45:42

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group