[issue8468] bz2: support surrogates in filename, and bytes/bytearray filename

2010-04-23 Thread STINNER Victor

STINNER Victor  added the comment:

Commited: r80402 (py3k), r80403 (3.1).

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8468] bz2: support surrogates in filename, and bytes/bytearray filename

2010-04-20 Thread STINNER Victor

New submission from STINNER Victor :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com