diff --git a/Objects/unicodectype.c b/Objects/unicodectype.c index b21fd35a4a4..a572c12bcc8 100644 --- a/Objects/unicodectype.c +++ b/Objects/unicodectype.c @@ -65,6 +65,8 @@ Py_UCS4 _PyUnicode_ToTitlecase(register Py_UCS4 ch) { const _PyUnicode_TypeRecord *ctype = gettyperecord(ch); + if (ctype->flags & EXTENDED_CASE_MASK) + return _PyUnicode_ExtendedCase[ctype->title & 0xFFFF]; return ch + ctype->title; }