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

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [BUGS] pgtcl large object read/write corrupts binary data
Дата
Msg-id 15956.1067452389@sss.pgh.pa.us
обсуждение исходный текст
Ответы Re: [BUGS] pgtcl large object read/write corrupts binary data  (Brett Schwarz <brett_schwarz@yahoo.com>)
Список pgsql-interfaces
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?
        regards, tom lane


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

Предыдущее
От: Surasak Khun
Дата:
Сообщение: Question on using fonts and run pgaccess on Windows XP
Следующее
От: "creid"
Дата:
Сообщение: PGEASY