Re: Small patch to improve safety of utf8_to_unicode(). - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Small patch to improve safety of utf8_to_unicode().
Date
Msg-id 3228230.1783963239@sss.pgh.pa.us
Whole thread
In response to Re: Small patch to improve safety of utf8_to_unicode().  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Small patch to improve safety of utf8_to_unicode().
List pgsql-hackers
I wrote:
> Well, there aren't going to be any ASCII characters that produce 12
> bytes, and probably not any LATIN1 characters either, so I think we
> could assume that the shortest input character that could produce
> such a long output would be 3 bytes.

Ah sorry, I should have written BMP not LATIN1.  Maybe it still holds
across that set, but I'm less sure.

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Small patch to improve safety of utf8_to_unicode().
Next
From: Arne Roland
Date:
Subject: Re: PlaceholderVars and join removal with appendrel parents