Issue 8468: bz2: support surrogates in filename, and bytes/bytearray filename (original) (raw)

Issue8468

Created on 2010-04-20 12:12 by vstinner, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
bz2_surrogates.patch vstinner,2010-04-20 12:12
Messages (2)
msg103696 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-04-20 12:12
bz2 uses "s" format to parse the filename argument: it uses the default (unicode) encoding to encode the unicode filename to a byte string. It should use the default file system encoding instead. It should also support surrogates in unicode filename and bytes/bytearray filenames. Attached patch uses PyUnicode_FSConverter() to implement that.
msg104004 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-04-23 11:19
Commited: r80402 (py3k), r80403 (3.1).
History
Date User Action Args
2022-04-11 14:57:00 admin set github: 52714
2010-04-23 11:19:57 vstinner set status: open -> closedresolution: fixedmessages: +
2010-04-20 12:12:56 vstinner link issue8242 dependencies
2010-04-20 12:12:47 vstinner create