Package: python3-apt
Version: 1.0.1
Severity: normal
Tags: upstream

Hi,

I noticed that TarMember.name throws UnicodeDecodeErrors on some deb files. A
current example in Debian:

> (desktop-sid-amd64)root@nightingale:/home/laney/temp# python3 -c "from 
> apt_inst import DebFile; DebFile('aspell-is_0.51-0-4_all.deb').data.go(lambda 
> member, data: member.name)"
> Traceback (most recent call last):
>   File "<string>", line 1, in <module>
>   File "<string>", line 1, in <lambda>
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xed in position 15: 
> invalid continuation byte

Since this comes from within python-apt itself it doesn't seem possible to
work around. I guess TarMember.name should be bytes (it works in python2).

Cheers,
-- 
Iain Lane                                  [ i...@orangesquash.org.uk ]
Debian Developer                                   [ la...@debian.org ]
Ubuntu Developer                                   [ la...@ubuntu.com ]

Reply via email to