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 jberg
Recipients Neui, SilentGhost, eryksun, jberg, ncoghlan
Date 2020-05-24.17:37:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
A simple test case is something like

  ./python -c 'import sys; print(sys.argv[1].encode(sys.getfilesystemencoding(), "surrogateescape"))' "$(echo -ne '\xfa\xbd\x83\x96\x80')"

Which you'd probably expect to print


i.e. the same bytes that were passed in, but currently that fails.
Date User Action Args
2020-05-24 17:37:55jbergsetrecipients: + jberg, ncoghlan, SilentGhost, eryksun, Neui
2020-05-24 17:37:55jbergsetmessageid: <>
2020-05-24 17:37:55jberglinkissue35883 messages
2020-05-24 17:37:55jbergcreate