Issue #8390: tarfile uses surrogateespace as the default error handler

(instead of replace in read mode or strict in write mode)
This commit is contained in:
Victor Stinner 2010-05-05 21:43:57 +00:00
parent aac786e586
commit de629d46f2
4 changed files with 21 additions and 19 deletions

View file

@ -1118,8 +1118,8 @@ class UstarUnicodeTest(unittest.TestCase):
if self.format != tarfile.PAX_FORMAT:
tar = tarfile.open(tmpname, encoding="ascii")
t = tar.getmember("foo")
self.assertEqual(t.uname, "\ufffd\ufffd\ufffd")
self.assertEqual(t.gname, "\ufffd\ufffd\ufffd")
self.assertEqual(t.uname, "\udce4\udcf6\udcfc")
self.assertEqual(t.gname, "\udce4\udcf6\udcfc")
class GNUUnicodeTest(UstarUnicodeTest):