mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
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:
parent
aac786e586
commit
de629d46f2
4 changed files with 21 additions and 19 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue