Re: patch: utf8_to_unicode (trivial) - Mailing list pgsql-hackers

From Tom Lane
Subject Re: patch: utf8_to_unicode (trivial)
Date
Msg-id 3781.1281723718@sss.pgh.pa.us
Whole thread Raw
In response to Re: patch: utf8_to_unicode (trivial)  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Fri, Aug 13, 2010 at 1:50 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> AFAICS the version in mbprint.c is flat out wrong, and the only reason
>> nobody's noticed is that it should never get passed a more-than-4-byte
>> sequence anyway.

> Should we fix it, then, and if so how far should we go back?

Yes, I'd vote for back-patching, at least to all versions in which the
wchar.c version looks like that.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: patch: utf8_to_unicode (trivial)
Next
From: Boszormenyi Zoltan
Date:
Subject: WIP partial replication patch