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 <>
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 import FS_NONASCII
>>> cmd = "assert(ord(%r) == %s)" % (FS_NONASCII, ord(FS_NONASCII))
>>> exec(cmd)
>>> import subprocess, sys
>>>[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:00xdegayesetrecipients: + xdegaye, vstinner, Alex.Willmer
2016-10-31 16:44:00xdegayesetmessageid: <>
2016-10-31 16:43:59xdegayelinkissue26919 messages
2016-10-31 16:43:59xdegayecreate