fix old titlecase function for extended case chars

This commit is contained in:
Benjamin Peterson 2012-01-15 21:33:32 -05:00
parent 0c6bab1c24
commit c6630b9291
1 changed files with 2 additions and 0 deletions

View File

@ -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;
}