[issue15875] tarfile may not make @LongLink for non-ascii character
Changes by Manuke manuke.skyl...@gmail.com: -- versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15875 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15875] tarfile may not make @LongLink for non-ascii character
Lars Gustäbel added the comment: I prepared a patch that fixes this issue and adds a few tests. Please try if it works for you. -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file27152/issue15875.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15875 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15875] tarfile may not make @LongLink for non-ascii character
Manuke added the comment: I have tried your patch and it have worked completely for my test code. The patch is efficient. Thank you for your speedy work. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15875 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15875] tarfile may not make @LongLink for non-ascii character
Changes by Lars Gustäbel l...@gustaebel.de: -- assignee: - lars.gustaebel nosy: +lars.gustaebel versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15875 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15875] tarfile may not make @LongLink for non-ascii character
New submission from Manuke: When I will make a GNU tar-file with 'tarfile', @LongLink may not be made though the name of the archived-file is long, if the name uses non-ascii characters. In tarfile.py, the check code of the filename length is described as follows now: tarfile.py: 1032 if len(info[name]) LENGTH_NAME: But, the type of the value is 'str', it is not encoded. It must be described as follows: if len(info[name].encode(encoding, errors)) LENGTH_NAME: There seems to be the same problem in Line 1029(and the other functions for other formats), but I have not confirmed. -- components: Library (Lib) messages: 169962 nosy: Manuke priority: normal severity: normal status: open title: tarfile may not make @LongLink for non-ascii character type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15875 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com