On Mon, May 21, 2018 at 11:18 AM, Wes Hardaker <
harda...@users.sourceforge.net> wrote:

> Bill Fenner <fen...@gmail.com> writes:
>
> > So, +1 on committing Bart's patch, because it accomplishes the goal of
> > fixing the regression, with the caveat that I really think that this
> > whole area needs to be revisited.
>
> I think this comment is spot on.  So I'd accept the patch too, though my
> gut reaction is to revert to whatever was in 5.7.1 because of the late
> point in this release cycle and we're redsigning critical code on the
> fly right before a release.
>
> We really need a test C function to check this stuff.  Any volunteers?
> (I'm not a UTF-8 expert at all)


The one I alluded to in an earlier email:
http://bjoern.hoehrmann.de/utf-8/decoder/dfa/

If we accept the dense magic, the code can be used for both "is this string
valid utf8" and "print all the valid utf8 if the last utf8-encoded
character got cut off on an octet boundary".

  Bill
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to