PQescapeBytea is not multibyte aware - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject PQescapeBytea is not multibyte aware
Date
Msg-id 20020405152453A.t-ishii@sra.co.jp
Whole thread Raw
Responses Re: PQescapeBytea is not multibyte aware  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
PQescapebytea() is not multibyte aware and will produce bad multibyte
character sequences. Example:

INSERT INTO t1(bytea_col) VALUES('characters produced by
PQescapebytea');
ERROR:  Invalid EUC_JP character sequence found (0x8950)

I think 0x89 should be converted to '\\211' since 0x89 of 0x8950 is
considered as "non printable characters".

Any objection?
--
Tatsuo Ishii


pgsql-hackers by date:

Previous
From: Gavin Sherry
Date:
Subject: Re: Changing column types...
Next
From: Bruce Momjian
Date:
Subject: Re: Linux/mips compile: [Fwd: Bug#139003: a little bit more