Author ronaldoussoren
Recipients barry-scott, ned.deily, r.david.murray, ronaldoussoren
Date 2020-10-23.19:33:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1603481637.87.0.454049736086.issue23797@roundup.psfhosted.org>
In-reply-to
Content
I've been using the scriptlet below to try to attempt to reproduce the problem. I'm not sure if this matches the way the program of the OP is set up.

The scriptlet below works for me without problems (macOS 10.15, Python 3.4 - 3.9).

This either means the problem has been fixed in the meantime (if it was an OS bug), or my script doesn't reproduce the problematic setup.

The traceback in the first message is due to LC_CTYPE=UTF-8 in the default shell environment on macOS, which wasn't recognised by locale.py for a long time. That issue has been fixed though.


# ----
import locale
import threading

def thread():
    print("thread locale:", locale.getlocale())

locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
#locale.getlocale()

t = threading.Thread(target=thread)
t.start()
t.join()
History
Date User Action Args
2020-10-23 19:33:57ronaldoussorensetrecipients: + ronaldoussoren, barry-scott, ned.deily, r.david.murray
2020-10-23 19:33:57ronaldoussorensetmessageid: <1603481637.87.0.454049736086.issue23797@roundup.psfhosted.org>
2020-10-23 19:33:57ronaldoussorenlinkissue23797 messages
2020-10-23 19:33:57ronaldoussorencreate