Merged revisions 71947 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r71947 | martin.v.loewis | 2009-04-26 02:53:18 +0200 (So, 26 Apr 2009) | 3 lines

  Issue #4971: Fix titlecase for characters that are their own
  titlecase, but not their own uppercase.
........
This commit is contained in:
Martin v. Löwis 2009-04-26 01:02:07 +00:00
parent 7442bd9cdb
commit 71efeb7cbf
3 changed files with 10 additions and 7 deletions

View file

@ -79,12 +79,7 @@ int _PyUnicode_IsLinebreak(register const Py_UNICODE ch)
Py_UNICODE _PyUnicode_ToTitlecase(register Py_UNICODE ch)
{
const _PyUnicode_TypeRecord *ctype = gettyperecord(ch);
int delta;
if (ctype->title)
delta = ctype->title;
else
delta = ctype->upper;
int delta = ctype->title;
if (ctype->flags & NODELTA_MASK)
return delta;