Éric Araujo <mer...@netwok.org> added the comment:

> Here's a test for the bug.
Thanks!  Some comments are strange, but the patch is a good start.

> One way to fix the symptom (maybe not the correct way) would be to edit
> tarfile._Stream._init_write_gz
I’d rather change distutils, not tarfile.  I think the best place to encode it 
may be in the cmd module (see the make_archive method).

> I'm not positive UTF-8 is right
It is.

> and maybe it should only convert if isinstance(self.name, unicode).
Indeed.

----------

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

Reply via email to