summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Objects/unicodectype.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/unicodectype.c b/Objects/unicodectype.c
index b21fd35a4a..a572c12bcc 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;
}