PQescapeBytea is not multibyte aware

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: pgsql-hackers(at)postgresql(dot)org
Subject: PQescapeBytea is not multibyte aware
Date: 2002-04-05 06:24:53
Message-ID: 20020405152453A.t-ishii@sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

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

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-04-05 11:38:06 Re: Linux/mips compile: [Fwd: Bug#139003: a little bit more
Previous Message Gavin Sherry 2002-04-05 04:55:42 Re: Changing column types...

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2002-04-05 11:41:59 Re: pg_dump for domains
Previous Message Bruce Momjian 2002-04-05 02:59:09 Re: please apply patch - build on Unixware with GCC