]> granicus.if.org Git - python/commit
#6373: SystemError in str.encode('latin1', 'surrogateescape')
authorAmaury Forgeot d'Arc <amauryfa@gmail.com>
Mon, 29 Jun 2009 22:36:49 +0000 (22:36 +0000)
committerAmaury Forgeot d'Arc <amauryfa@gmail.com>
Mon, 29 Jun 2009 22:36:49 +0000 (22:36 +0000)
commit84ec8d931404f4f9037242ec933fdcdcd4870114
tree4936dae944a05bf26858b44065def904c8d23fac
parentf909202c11e0a304486c9fb71458e19a598d10c0
#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')
Lib/test/test_codecs.py
Misc/NEWS
Objects/unicodeobject.c