Re: [rfc] unicode escapes for extended strings

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Marko Kreen <markokr(at)gmail(dot)com>
Cc: Postgres Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: [rfc] unicode escapes for extended strings
Date: 2009-09-24 18:42:32
Message-ID: 1253817752.12572.11.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 2009-09-23 at 22:46 +0300, Marko Kreen wrote:
> I looked at your code for U& and saw that you allow standalone
> second half of the surrogate pair there, although you error
> out on first half. Was that deliberate?

No.

> Perhaps pg_verifymbstr() should be made to check for such values,
> because even if we fix the escaping code, such data can still be
> inserted via plain utf8 or \x escapes?

Good idea. This could also check for other invalid things like
byte-order marks in UTF-8.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Ricky Tompu Breaky 2009-09-24 18:47:03 Newbie's question: How can I connect to my postgresql-server?
Previous Message David E. Wheeler 2009-09-24 16:05:58 Re: Unicode Normalization