Re: [rfc] unicode escapes for extended strings - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: [rfc] unicode escapes for extended strings
Date
Msg-id 1253817752.12572.11.camel@vanquo.pezone.net
Whole thread Raw
In response to Re: [rfc] unicode escapes for extended strings  (Marko Kreen <markokr@gmail.com>)
Responses Re: [rfc] unicode escapes for extended strings
List 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.



pgsql-hackers by date:

Previous
From: "David E. Wheeler"
Date:
Subject: Re: Unicode Normalization
Next
From: Josh Berkus
Date:
Subject: Re: Join optimization for inheritance tables