diff options
author | ache <ache@FreeBSD.org> | 2003-12-19 12:54:42 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 2003-12-19 12:54:42 +0000 |
commit | 750b0b565dd7fa0f9a1a576ce1cccdab8f2be6c6 (patch) | |
tree | d09bf367917644fe325e8343a98bb913591fe375 /lib/libc/locale/gbk.c | |
parent | 807b3fd50baf6a23ec7adc2fda7403798007939d (diff) | |
download | FreeBSD-src-750b0b565dd7fa0f9a1a576ce1cccdab8f2be6c6.zip FreeBSD-src-750b0b565dd7fa0f9a1a576ce1cccdab8f2be6c6.tar.gz |
First byte of GBK-like sequences is 0x81, not 0x80
Diffstat (limited to 'lib/libc/locale/gbk.c')
-rw-r--r-- | lib/libc/locale/gbk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/locale/gbk.c b/lib/libc/locale/gbk.c index b740859..e5572bc 100644 --- a/lib/libc/locale/gbk.c +++ b/lib/libc/locale/gbk.c @@ -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 |