Commit e3a2acef authored by Christian Hergert's avatar Christian Hergert
Browse files

utf8: check for non-shortest form using known valid code points

http://www.unicode.org/versions/corrigendum1.html

We need to check that the non-shortest form of the UTF-8 is being used
when validating UTF-8. Higher level languages should be doing this when
they convert to their native string type, but we need it in C as well.

The two-byte representation for NULL is allowed (modified-utf8).
parent 368a5e0f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment