Re: UTF-8 practically vs. theoretically in the VFS API

H. Peter Anvin
2004-02-18T16:47:59Z

Jamie Lokier wrote:
>
> hpa's suggestion that invalid bytes are treated as 0x800000xx works
> very nicely, *iff* a program is absolutely consistent about its
> treatment of bytes in that way. When there's a mixture of code which
> interprets malformed UTF-8 in different ways, then it's messy and
> sometimes a security hazard.
>

Absolutely. It has to be considered very carefully.

-hpa