[issue19264] subprocess.Popen doesn't support unicode on Windows
Valentin LAB
report at bugs.python.org
Wed Mar 15 06:39:06 EDT 2017
Valentin LAB added the comment:
For eventual other people wanting a workaround, this is the code I used to leverage ``ctypes`` and redo what last python 3 code is doing. Any comment are welcome, this is my first go at ``ctypes``. I didn't extensively tested the code... so use at your own risk. The Gist might evolve if some people find issues:
https://gist.github.com/vaab/2ad7051fc193167f15f85ef573e54eb9
Tests/Usecases are simple: use ``subprocess.Popen(..)`` to simply issue a ``git commit -am "ć"``. And display the changelog. You can also call another python script, that would then need this other recipe (this time to get ``sys.argv`` correctly encoded on windows):
http://code.activestate.com/recipes/572200/
Hope that helps.
----------
nosy: +Valentin LAB
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19264>
_______________________________________
More information about the Python-bugs-list
mailing list