From bb7292b287221f820e77c2434bcc652dbb484ae6 Mon Sep 17 00:00:00 2001 From: Eric Kohl Date: Sun, 7 Oct 2018 22:44:54 +0200 Subject: [PATCH] [CRT] Fix two obvious typos in _mbbtype(). Patch by Kudratov Olimjon. CORE-8545 --- sdk/lib/crt/mbstring/mbbtype.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/lib/crt/mbstring/mbbtype.c b/sdk/lib/crt/mbstring/mbbtype.c index e1a21bd9bcd..14775ea8f0b 100644 --- a/sdk/lib/crt/mbstring/mbbtype.c +++ b/sdk/lib/crt/mbstring/mbbtype.c @@ -25,7 +25,7 @@ int _mbbtype(unsigned char c , int type) { return _MBC_TRAIL; } - else if (( c >= 0x20 && c >= 0x7E ) || ( c >= 0xA1 && c <= 0xDF ) || + else if (( c >= 0x20 && c <= 0x7E ) || ( c >= 0xA1 && c <= 0xDF ) || ( c >= 0x81 && c <= 0x9F ) || ( c >= 0xE0 && c <= 0xFC ) ) return _MBC_ILLEGAL; else @@ -36,7 +36,7 @@ int _mbbtype(unsigned char c , int type) } else if ( (c >= 0x81 && c <= 0x9F ) || ( c >= 0xE0 && c <= 0xFC) ) return _MBC_LEAD; - else if (( c >= 0x20 && c >= 0x7E ) || ( c >= 0xA1 && c <= 0xDF ) || + else if (( c >= 0x20 && c <= 0x7E ) || ( c >= 0xA1 && c <= 0xDF ) || ( c >= 0x81 && c <= 0x9F ) || ( c >= 0xE0 && c <= 0xFC ) ) return _MBC_ILLEGAL; else