New submission from Emanuel Barry: I got a random UnicodeDecodeError while trying to install a module with distutils. Traced it back and it being my name having a non-ascii character floating around in my environment.
I'm including two patches: subprocess_errors_simple_1.patch simply adds 'errors="replace"' to the stdin, stdout and stderr, while subprocess_distutils_errors_1.patch fixes this a bit more thoroughly. I haven't added any tests yet, I'll add them to the proper patch when a concensus on which one to use is reached. ---------- components: Library (Lib), Unicode files: subprocess_errors_simple_1.patch keywords: patch messages: 265774 nosy: ebarry, ezio.melotti, haypo priority: normal severity: normal stage: patch review status: open title: Breakages in subprocess.Popen with non-ascii characters in environment type: behavior versions: Python 3.6 Added file: http://bugs.python.org/file42880/subprocess_errors_simple_1.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27048> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com