[issue4610] Unicode case mappings are incorrect

Jeff Senn report at bugs.python.org
Wed Oct 14 21:25:30 CEST 2009


Jeff Senn <senn at users.sourceforge.net> added the comment:

Yikes! I just noticed that u''.title() is really broken! 

It doesn't really pay attention to word breaks -- 
only characters that "have case".  
Therefore when there are (caseless)
combining characters in a word it's really broken e.g.

>>> u'n\u0303on\u0303e'.title()
u'N\u0303On\u0303E'

That is (where '~' is combining-tilde-over)
n~on~e -title-cases-to-> N~On~E

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4610>
_______________________________________


More information about the Python-bugs-list mailing list