pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: ljb <ljb220@mindspring.com>
Cc: pgsql-bugs@postgresql.org
Subject: Re: pgtcl large object read/write corrupts binary data
Date: Thu, 30 Oct 2003 19:20:06 -0500
Message-ID: <4529.1067559606@sss.pgh.pa.us> (raw)
In-Reply-To: <bni06l$2jh$2@news.hub.org>
References: <bni06l$2jh$2@news.hub.org>

ljb <ljb220@mindspring.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



view thread (4+ messages)

Message-ID: <4529.1067559606@sss.pgh.pa.us>
Permalink:  ../4529.1067559606@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/4529.1067559606@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ljb220@mindspring.com, pgsql-bugs@postgresql.org
  Subject: Re: pgtcl large object read/write corrupts binary data
  In-Reply-To: <4529.1067559606@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox