Index: contrib/nvi/common/encoding.c =================================================================== --- contrib/nvi/common/encoding.c (revision 292832) +++ contrib/nvi/common/encoding.c (working copy) @@ -96,7 +96,7 @@ if (i >= nbytes) goto done; - if (buf[i] & 0x40) /* 10xxxxxx */ + if ((buf[i] & 0xc0) != 0x10) /* 10xxxxxx */ return -1; }