First byte of GBK-like sequences is 0x81, not 0x80

This commit is contained in:
Andrey A. Chernov 2003-12-19 12:54:42 +00:00
parent 847f699275
commit 6abda1f093

View File

@ -68,7 +68,7 @@ _gbk_check(u_int c)
{
c &= 0xff;
return ((c >= 0x80 && c <= 0xfe) ? 2 : 1);
return ((c >= 0x81 && c <= 0xfe) ? 2 : 1);
}
size_t