[issue27387] Thread hangs on str.encode() when locale is not set

2016-06-25 Thread Josh Purvis
New submission from Josh Purvis: This bug manifest itself in at least one very specific situation: 1. No locale is set on the machine 2. A file (test1.py) imports a second (test2.py) 3. The second file (test2.py) calls str.encode() from inside a thread 4. Running Python 2.7

[issue17981] SysLogHandler closes connection before using it

2013-05-15 Thread Josh Purvis
Changes by Josh Purvis joshua.pur...@gmail.com: -- nosy: +Josh.Purvis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17981 ___ ___ Python-bugs-list

[issue17981] SysLogHandler closes connection before using it

2013-05-15 Thread Josh Purvis
Josh Purvis added the comment: Ironically, I ran into this same exact issue today, and I have investigated the `files_preserve` param, with no luck. I'm not too familiar with the internals here, but from what I can tell it works with FileHandler, but not the SysLogHandler. If you try to add