From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003 Description of problem: The following program should output identical strings (both should be lowercase), but it prints uppercase version in thread until setlocale is called: from threading import Thread LOCALE='ru_RU.KOI8-R' TEXT=u'\u041a\u0420\u042b\u0421\u042b \u0438 \u043c\u044b\u0448\u0438'.encode('koi8-r') class TestThread(Thread): def __init__(self): Thread.__init__(self) def run(self): print 'In thread: %s' % TEXT.lower() locale.setlocale(locale.LC_ALL, LOCALE) print 'After setlocale in thread: %s' % TEXT.lower() locale.setlocale(locale.LC_ALL, LOCALE) t = TestThread() t.start() Therefore locale.setlocale() in main thread doesn't have effect in another threads. On Red Hat 8 this works as expected. Version-Release number of selected component (if applicable): python-2.2.2-26 How reproducible: Always Steps to Reproduce: 1.Run the included code snippet Actual Results: In thread: ����� � ���� After setlocale in thread: ����� � ���� Expected Results: In thread: ����� � ���� After setlocale in thread: ����� � ���� Additional info:
How does it behave in Fedora?
Since there are insufficient details provided in this report for us to investigate the issue further, and we have not received the feedback we requested, we will assume the problem was not reproduceable or has been fixed in a later update for this product. Users who have experienced this problem are encouraged to upgrade to the latest update release, and if this issue is still reproduceable, please contact the Red Hat Global Support Services page on our website for technical support options: https://www.redhat.com/support If you have a telephone based support contract, you may contact Red Hat at 1-888-GO-REDHAT for technical support for the problem you are experiencing.