Serhiy Storchaka added the comment:

> The actual fix in the previous issue, as in Python 3, was to always write the 
> filename, but with errors replaced with '?/.

Filename is optional in gzip file. If it can't be encoded to Latin1, it should 
be just omitted.

Here is a patch which backports the solution from Python 3 (accumulated 
f37016d42729, fb069eafaf89, 8cff949323c9, and e044fa016c85).

----------
keywords: +patch
nosy: +nadeem.vawda, serhiy.storchaka
stage:  -> patch review
type:  -> behavior
Added file: http://bugs.python.org/file36784/gzip_unicode_filename-2.7.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue13664>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to