[New-bugs-announce] [issue8468] bz2: support surrogates in filename, and bytes/bytearray filename

STINNER Victor report at bugs.python.org
Tue Apr 20 14:12:49 CEST 2010


New submission from STINNER Victor <victor.stinner at haypocalc.com>:

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.

----------
components: Library (Lib), Unicode
files: bz2_surrogates.patch
keywords: patch
messages: 103696
nosy: haypo
severity: normal
status: open
title: bz2: support surrogates in filename, and bytes/bytearray filename
versions: Python 3.1, Python 3.2
Added file: http://bugs.python.org/file17006/bz2_surrogates.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8468>
_______________________________________


More information about the New-bugs-announce mailing list