[issue16129] No good way to set 'PYTHONIOENCODING' when embedding python.
Bastien Montagne
report at bugs.python.org
Wed Sep 18 16:58:58 CEST 2013
Bastien Montagne added the comment:
Hi,
Decided to give it a try and implement suggested Py_SetStandardStreamEncoding, see attached patch.
A quick test with Blender under Linux (with an ASCII console) seems to work OK, unfortunatly I do not have Windows to test it where it really matters...
That's my first piece of code ever written for Python, I hope it does not contain too much obvious errors!
----------
nosy: +mont29
Added file: http://bugs.python.org/file31808/setstdio.diff
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16129>
_______________________________________
More information about the Python-bugs-list
mailing list