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
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
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
Changes by Berker Peksag berker.pek...@gmail.com:
--
nosy: +berker.peksag
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20086
___
___
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.
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
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
___
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.