diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-01-16 02:33:32 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-01-16 02:33:32 (GMT) |
commit | c6630b9291544fd875aa0c1cb0b11a840abb1d29 (patch) | |
tree | bd682d54e9b08cd08fca876bcc3eacf280a94285 /Objects | |
parent | 0c6bab1c24e8796b93739350c8c78cdc59efd3b3 (diff) | |
download | cpython-c6630b9291544fd875aa0c1cb0b11a840abb1d29.zip cpython-c6630b9291544fd875aa0c1cb0b11a840abb1d29.tar.gz cpython-c6630b9291544fd875aa0c1cb0b11a840abb1d29.tar.bz2 |
fix old titlecase function for extended case chars
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/unicodectype.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/unicodectype.c b/Objects/unicodectype.c index b21fd35..a572c12 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; } |