[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#806596: TarMember.name throws UnicodeDecodeError on some filenames



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                                  [ iain@orangesquash.org.uk ]
Debian Developer                                   [ laney@debian.org ]
Ubuntu Developer                                   [ laney@ubuntu.com ]


Reply to: