Message123020
| Author |
vstinner |
| Recipients |
amaury.forgeotdarc, mark, mightyiam, pitrou, segfaulthunter, srid, vstinner |
| Date |
2010年12月01日.23:14:03 |
| SpamBayes Score |
3.598788e-13 |
| Marked as misclassified |
No |
| Message-id |
<1291245245.61.0.0637777009543.issue6135@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
About the topic:
> subprocess seems to use local 8-bit encoding and gives no choice
I don't understand that: by default, Python 2 and Python 3 use byte strings, so there is no encoding (nor error handler).
I don't see how you can get unicode from a process only using subprocess. But with Python 3, you can get unicode if you set universal_newlines option to True.
So for Python 2, it's a new feature (get unicode), and for Python 3, it's a new option to specify the encoding. The title should be changed to something like "subprocess: add an option to specify stdin, stdout and/or stderr encoding and errors" and the type should be changed to "feature request".
Or am I completly wrong? |
|