消息 [123020]
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? |
|
| 日期 |
用户 |
动作 |
参数 |
| 2010-12-01 23:14:05 | vstinner | 修改 | recipients:
+ vstinner, amaury.forgeotdarc, pitrou, mark, segfaulthunter, srid, mightyiam |
| 2010-12-01 23:14:05 | vstinner | 修改 | messageid: <1291245245.61.0.0637777009543.issue6135@psf.upfronthosting.co.za> |
| 2010-12-01 23:14:03 | vstinner | 链接 | issue6135 messages |
| 2010-12-01 23:14:03 | vstinner | 创建 | |
|