diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index 269ba57ec65..330b3763e44 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c @@ -326,7 +326,7 @@ _getucname(Py_UCS4 code, char* buffer, int buflen) int word; unsigned char* w; - if (SBase <= code && code <= SBase+SCount) { + if (SBase <= code && code < SBase+SCount) { /* Hangul syllable. */ int SIndex = code - SBase; int L = SIndex / NCount;