Message169962
| Author |
Manuke |
| Recipients |
Manuke |
| Date |
2012年09月07日.01:24:19 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1346981062.61.0.534239636824.issue15875@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年09月07日 01:24:23 | Manuke | set | recipients:
+ Manuke |
| 2012年09月07日 01:24:22 | Manuke | set | messageid: <1346981062.61.0.534239636824.issue15875@psf.upfronthosting.co.za> |
| 2012年09月07日 01:24:21 | Manuke | link | issue15875 messages |
| 2012年09月07日 01:24:20 | Manuke | create |
|