Bug#968060: axi-cache: string/bytes confusion in display
Package: apt-xapian-index
Version: 0.51
Severity: minor
Tags: patch
Dear Maintainer,
In rdepends output:
rharwood@eesha:~$ axi-cache rdepends apt-xapian-index
apt-xapian-index
Reverse Depends:
b'muon'
b'packagesearch'
b'synaptic'
b'aptitude'
b'python3-apt'
rharwood@eesha:~$
When print() is called on a `bytes` object in python3, it formats it like that
(with the leading 'b' etc.). The smallest fix is probably to change the
print() in do_rdepends() (on line 701) from
print(" ", pkg)
to
print(" ", pkg.decode("utf-8"))
However, this probably shows up other places as well and a more invasive fix
might be better.
Thanks,
--Robbie
-- System Information:
Debian Release: bullseye/sid
APT prefers testing-debug
APT policy: (700, 'testing-debug'), (700, 'testing'), (500, 'unstable-debug'), (500, 'unstable'), (300, 'experimental-debug'), (300, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 5.7.0-2-amd64 (SMP w/12 CPU threads)
Locale: LANG=es_US.UTF-8, LC_CTYPE=es_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages apt-xapian-index depends on:
ii python3 3.8.2-3
ii python3-apt 2.1.3
ii python3-debian 0.1.37
ii python3-xapian 1.4.15-1+b1
apt-xapian-index recommends no packages.
Versions of packages apt-xapian-index suggests:
ii python3-xdg 0.26-3
-- no debconf information
Reply to: