Serhiy Storchaka added the comment: As I understand, OP has UTF-8 locale. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue16322> _______________________________________