mirror of https://github.com/python/cpython
fix old titlecase function for extended case chars
This commit is contained in:
parent
0c6bab1c24
commit
c6630b9291
|
@ -65,6 +65,8 @@ Py_UCS4 _PyUnicode_ToTitlecase(register Py_UCS4 ch)
|
||||||
{
|
{
|
||||||
const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
|
const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
|
||||||
|
|
||||||
|
if (ctype->flags & EXTENDED_CASE_MASK)
|
||||||
|
return _PyUnicode_ExtendedCase[ctype->title & 0xFFFF];
|
||||||
return ch + ctype->title;
|
return ch + ctype->title;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue