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

This commit is contained in:
ache 2003-12-19 12:54:42 +00:00
parent 807b3fd50b
commit 750b0b565d

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