Message180157
| Author | berwin22 |
|---|---|
| Recipients | Arfrever, amaury.forgeotdarc, berwin22, chris.jerdonek, eric.araujo, mark, mightyiam, ncoghlan, pitrou, r.david.murray, segfaulthunter, srid, vstinner |
| Date | 2013-01-17.22:14:23 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1358460864.25.0.280510380883.issue6135@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
I've found a workaround by specifying the enviroment variable: my_env = os.environ my_env['PYTHONIOENCODING'] = 'utf-8' p = subprocess.Popen(shlex.split(command), stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, env=my_env) I've attached an example script for testing. It calls itself recursively 10 times. Pleased note the 'fix' variable. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2013-01-17 22:14:24 | berwin22 | set | recipients: + berwin22, amaury.forgeotdarc, ncoghlan, pitrou, vstinner, mark, eric.araujo, segfaulthunter, Arfrever, r.david.murray, srid, mightyiam, chris.jerdonek |
| 2013-01-17 22:14:24 | berwin22 | set | messageid: <1358460864.25.0.280510380883.issue6135@psf.upfronthosting.co.za> |
| 2013-01-17 22:14:24 | berwin22 | link | issue6135 messages |
| 2013-01-17 22:14:24 | berwin22 | create | |