Noncharacters 0xFFFE and 0xFFFF don't render a UTF-8 string invalid
authorstsp <stsp@openbsd.org>
Sat, 3 May 2014 14:10:20 +0000 (14:10 +0000)
committerstsp <stsp@openbsd.org>
Sat, 3 May 2014 14:10:20 +0000 (14:10 +0000)
commit2d1d6f4d83b8ea8aff97c2c329f5a1559b5467bf
tree6193d3ea32d711d629dab34edc10342c93cd3bb6
parent6b86ff879b2a2d4b68b2dcc80eb96bbf1f99247f
Noncharacters 0xFFFE and 0xFFFF don't render a UTF-8 string invalid
so stop rejecting them in our citrus UTF-8 parser.

This is a common misinterpretation of the Unicode standard which resulted
in a corrigendum last year: http://www.unicode.org/versions/corrigendum9.html

Pointed out by jilles@freebsd (via pfg@freebsd), thanks!
lib/libc/citrus/citrus_utf8.c