First byte of GBK-like sequences is 0x81, not 0x80
This commit is contained in:
parent
847f699275
commit
6abda1f093
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user