Re: UNICODE characters above 0x10000 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: UNICODE characters above 0x10000
Date
Msg-id 22427.1091817417@sss.pgh.pa.us
Whole thread Raw
In response to Re: UNICODE characters above 0x10000  ("John Hansen" <john@geeknet.com.au>)
List pgsql-hackers
"John Hansen" <john@geeknet.com.au> writes:
> Attached, as promised, small patch removing the limitation, adding
> correct utf8 validation.

Surely this is badly broken --- it will happily access data outside the
bounds of the given string.  Also, doesn't pg_mblen already know the
length rules for UTF8?  Why are you duplicating that knowledge?

            regards, tom lane

pgsql-hackers by date:

Previous
From: "J. Andrew Rogers"
Date:
Subject: Re: PostgreSQL as an application server
Next
From: Alvaro Herrera
Date:
Subject: Re: CVS comment