This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author xdegaye
Recipients Alex.Willmer, vstinner, xdegaye
Date 2016-10-31.16:43:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1477932240.0.0.302000230507.issue26919@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2016-10-31 16:44:00xdegayesetrecipients: + xdegaye, vstinner, Alex.Willmer
2016-10-31 16:44:00xdegayesetmessageid: <1477932240.0.0.302000230507.issue26919@psf.upfronthosting.co.za>
2016-10-31 16:43:59xdegayelinkissue26919 messages
2016-10-31 16:43:59xdegayecreate