Re: Faster UTF-8 decoding in GLib



On 03/26/2010 05:43 PM, Daniel Elstner wrote:
> Hi Behdad,
> 
> Am Freitag, den 26.03.2010, 13:25 -0400 schrieb Behdad Esfahbod:
> 
>>     * The construct borrowed from glibmm, as beautiful as it is, is WRONG for
>> 6-byte-long UTF-8.  It just doesn't work.  We historically support those
>> sequences.
> 
> What?  In what way exactly is it wrong?

Err, you're right.  My bad.  It's still broken though since it doesn't check
that the fragment bytes all start with the bits 10.  Missing error checking.

behdad

> --Daniel
> 
> 
> 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]