From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: PQescapeBytea is not multibyte aware |
Date: | 2002-04-05 15:18:58 |
Message-ID: | 24188.1018019938@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-patches |
Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp> writes:
> PQescapebytea() is not multibyte aware and will produce bad multibyte
> character sequences. Example:
> I think 0x89 should be converted to '\\211' since 0x89 of 0x8950 is
> considered as "non printable characters".
Hmm, so essentially we'd have to convert all codes >= 0x80 to prevent
them from being mistaken for parts of multibyte sequences? Ugh, but
you're probably right. It looks to me like byteaout does the reverse
already.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Justin Clift | 2002-04-05 15:27:59 | [Fwd: AW: UB-Tree's and patents] |
Previous Message | Jessica Perry Hekman | 2002-04-05 15:13:48 | Re: timeout implementation issues |
From | Date | Subject | |
---|---|---|---|
Next Message | Joe Conway | 2002-04-05 16:16:01 | Re: PQescapeBytea is not multibyte aware |
Previous Message | Bruce Momjian | 2002-04-05 12:13:04 | Re: 7.2 fe-exec.c patch to PQescapeString() |