SIGN IN SIGN UP

#6373: SystemError in str.encode('latin1', 'surrogateescape')

if the string contains unpaired surrogates.
(In debug build, crash in assert())

This can happen with normal processing, if python starts with utf-8,
then calls sys.setfilesystemencoding('latin-1')
A
Amaury Forgeot d'Arc committed
84ec8d931404f4f9037242ec933fdcdcd4870114
Parent: f909202