[issue20049] string.lowercase and string.uppercase can contain garbage

Antoine Pitrou report at bugs.python.org
Sun Dec 22 16:03:51 CET 2013


Antoine Pitrou added the comment:

As to whether we will add a workaround for this in Python:

- Python follows POSIX correctly here, and no issue was reported in mainstream OSes such as Linux, OS X or the *BSDs

- this only exists in 2.7, which is in extended maintenance mode (it's the last of the 2.x series, and will probably stopped being maintained in a few years); Python 3.x doesn't have this issue

- IllumOS is a rather niche OS that none of us is using, so adding a system-specific workaround doesn't sound very compelling

Thanks for reporting, though. It's good to be reminded that locales and ctype.h are a rather lousy design :-)

----------

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


More information about the Python-bugs-list mailing list