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

Поиск
Список
Период
Сортировка
От Brett Schwarz
Тема Re: [INTERFACES] pgtcl large object read/write corrupts binary data
Дата
Msg-id 20031030211338.32691.qmail@web40607.mail.yahoo.com
обсуждение исходный текст
Ответ на Re: pgtcl large object read/write corrupts binary data  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
--- Tom Lane <tgl@sss.pgh.pa.us> wrote:
> 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.
> > ...
> > 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/


В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Optical Alert!"
Дата:
Сообщение: any windows port yet?
Следующее
От: Neil Conway
Дата:
Сообщение: Re: CREATE INDEX spoils IndexScan planns