Message279803
An interactive session confirms that the problem is indeed with the command line arguments of python invoked by subprocess (and the problem is fixed by the patch):
>>> from test.support import FS_NONASCII
>>> cmd = "assert(ord(%r) == %s)" % (FS_NONASCII, ord(FS_NONASCII))
>>> exec(cmd)
>>> import subprocess, sys
>>> subprocess.run([sys.executable, '-c', cmd])
Unable to decode the command from the command line:
UnicodeEncodeError: 'utf-8' codec can't encode characters in position 12-13: surrogates not allowed
CompletedProcess(args=['/data/data/org.bitbucket.pyona/python/bin/python', '-c', "assert(ord('\xe6') == 230)"], returncode=1) |
|
Date |
User |
Action |
Args |
2016-10-31 16:44:00 | xdegaye | set | recipients:
+ xdegaye, vstinner, Alex.Willmer |
2016-10-31 16:44:00 | xdegaye | set | messageid: <1477932240.0.0.302000230507.issue26919@psf.upfronthosting.co.za> |
2016-10-31 16:43:59 | xdegaye | link | issue26919 messages |
2016-10-31 16:43:59 | xdegaye | create | |
|