[Python-checkins] cpython: fix old titlecase function for extended case chars
benjamin.peterson
python-checkins at python.org
Mon Jan 16 03:33:40 CET 2012
http://hg.python.org/cpython/rev/f44829767dd4
changeset: 74428:f44829767dd4
parent: 74426:ecc998ec8c6f
user: Benjamin Peterson <benjamin at python.org>
date: Sun Jan 15 21:33:32 2012 -0500
summary:
fix old titlecase function for extended case chars
files:
Objects/unicodectype.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Objects/unicodectype.c b/Objects/unicodectype.c
--- a/Objects/unicodectype.c
+++ b/Objects/unicodectype.c
@@ -65,6 +65,8 @@
{
const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
+ if (ctype->flags & EXTENDED_CASE_MASK)
+ return _PyUnicode_ExtendedCase[ctype->title & 0xFFFF];
return ch + ctype->title;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list