[issue12737] str.title() is overzealous by upcasing combining marks inappropriately

Ezio Melotti report at bugs.python.org
Fri Sep 30 05:36:43 CEST 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

After PEP 393 the result is still the same (I attached a slightly improved version of the script):

titlecase of  'deme un cafe'  should be  'Deme Un Cafe'  not  'DeMe Un Cafe'
titlecase of  'istanbul'  should be  'Istanbul'  not  'IStanbul'
titlecase of  'α στο διαολο'  should be  'Α Στο Διαολο'  not  'ΑΙ Στο ΔιαΟλο'
failed 3 out of 6 tests

Martin, do you think that str.title() should follow the Unicode standard?
Should string methods work with all the normalizations or just with NFC?

----------
Added file: http://bugs.python.org/file23271/titletest.py

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


More information about the Python-bugs-list mailing list