[issue25997] Tarfile.add with bytes path is failling

2016-01-02 Thread R. David Murray
R. David Murray added the comment: Does using a surrogateescape encoded filename work? (You won't get the error you report...my question is, does that do the right thing when building the archive?) -- ___ Python tracker

[issue25997] Tarfile.add with bytes path is failling

2016-01-02 Thread R. David Murray
R. David Murray added the comment: See also issue 21996. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25997] Tarfile.add with bytes path is failling

2016-01-02 Thread SilentGhost
Changes by SilentGhost : -- components: +Library (Lib) -Unicode nosy: +lars.gustaebel versions: +Python 3.5, Python 3.6 -Python 3.4 ___ Python tracker ___ ___

[issue25997] Tarfile.add with bytes path is failling

2016-01-02 Thread Patrik Dufresne
New submission from Patrik Dufresne: With python 3.4, Tarfile doesn't properly support adding a files with bytes path. Only unicode is supported. It's failing with exception similar to: tar.add(os.path.join(dirpath, filename), filename) File "/usr/lib/python3.4/tarfile.py", line 1907, in