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
Subject: Re: pgtcl large object read/write corrupts binary data
Date: 2003-10-31 00:20:06
Message-ID: 4529.1067559606@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-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.

Patch applied to 7.4, along with a further fix to handle a negative return
value from lo_read properly. Thanks for the report and patch!

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Francisco Olarte Sanz 2003-10-31 09:46:32 Re: minor: ~ not resolved in psql
Previous Message Tom Lane 2003-10-30 22:16:14 Re: minor: ~ not resolved in psql

Browse pgsql-interfaces by date

  From Date Subject
Next Message Brad Wilson 2003-10-31 02:03:50 Possible bug with psqlodbc driver
Previous Message Brett Schwarz 2003-10-30 21:13:38 Re: [INTERFACES] pgtcl large object read/write corrupts binary data