Author barry-scott
Recipients barry-scott
Date 2015-03-28.10:47:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I'm seeing a random traceback when starting a new thread on Mac OS X 10.10.2 with python 3.4.3 final.

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/", line 920, in _bootstrap_inner
  File "/Users/barry/wc/svn/pysvn-phoenix/WorkBench/Source/", line 40, in run 'BackgroundThread locale %r' % (locale.getlocale(),) )
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/", line 575, in getlocale
    return _parse_localename(localename)
  File "/Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/", line 484, in _parse_localename
    raise ValueError('unknown locale: %s' % localename)
ValueError: unknown locale: UTF-8

Adding a time.sleep( 5 ) prevents the traceback.

Using _locale.setlocale( locale.LC_ALL, None ) to see the state with interfering it looks like the locale is being initialised in the thread after run() is called. (Make no sense to me, but I can reproduce).

I have failed to create a small script to show this bug.
Date User Action Args
2015-03-28 10:47:55barry-scottsetrecipients: + barry-scott
2015-03-28 10:47:55barry-scottsetmessageid: <>
2015-03-28 10:47:55barry-scottlinkissue23797 messages
2015-03-28 10:47:54barry-scottcreate