[issue20086] test_locale fails with Turkish locale

2014-01-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20086

[issue20086] test_locale fails with Turkish locale

2014-01-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset bac50f54d357 by Serhiy Storchaka in branch '2.7': Issue #20086: Restored the use of locale-independing mapping instead of http://hg.python.org/cpython/rev/bac50f54d357 -- ___ Python tracker

[issue20086] test_locale fails with Turkish locale

2014-01-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- title: test_locale fails on PPC64 PowerLinux - test_locale fails with Turkish locale ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20086

[issue20086] test_locale fails with Turkish locale

2014-01-10 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20086 ___ ___

[issue20086] test_locale fails with Turkish locale

2014-01-10 Thread Stefan Krah
Stefan Krah added the comment: 3d805bee06e2 uses str.lower(), which fails on the Turkish 'i' if the Turkish locale is set: Python 2.7.6+ (2.7:0e5df5b62488+, Jan 10 2014, 23:25:35) [GCC 4.6.3 20120306 (Red Hat 4.6.3-2)] on linux2 Type help, copyright, credits or license for more information.

[issue20086] test_locale fails with Turkish locale

2014-01-10 Thread Stefan Krah
Stefan Krah added the comment: I'm not sure if str.lower() is supposed to use tolower() in stringobject.c. If tolower() is replaced by Py_TOLOWER(), the problem disappears. But maybe the locale dependent tolower() is used on purpose. -- ___ Python

[issue20086] test_locale fails with Turkish locale

2014-01-10 Thread Stefan Krah
Stefan Krah added the comment: Ignore me, the fine manual says that For 8-bit strings, this method is locale-dependent. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20086 ___

[issue20086] test_locale fails with Turkish locale

2014-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good catch, Stefan! Here is a patch which restores old behavior. It also changes test_locale to try several Turkish locale names. On some platforms (as Ubuntu) bare tr_TR is not exist, but only tr_TK.utf8. This will increase chance for this test to run.