Re: UTF8_ALLOW_ANYUV should not allow overlong sequences [PATCH]

2004-12-09 Thread Rafael Garcia-Suarez
Gisle Aas wrote: > Perl use the UTF8_ALLOW_ANYUV mask in functions that should not be > restricted to only the valid Unicode code points. For some reason > this mask currently include the UTF8_ALLOW_LONG flag. This seems > totally wrong as there can't be a good reason to allow overlong > sequence

Re: real UTF-8 vs. utf8n_to_uvuni()

2004-12-09 Thread Gisle Aas
Dan Kogai <[EMAIL PROTECTED]> writes: > --- perl-5.8.x/utf8.c Wed Nov 17 23:11:04 2004 > +++ perl-5.8.x.dan/utf8.c Sun Dec 5 11:38:52 2004 > @@ -429,6 +429,13 @@ > } > else > uv = UTF8_ACCUMULATE(uv, *s); > + /* Checks if ord() > 0x10 -- dankogai *