Dear Florian,
Thank you very much for sharing your technical
skill to generously maintain Debian's important
debsecan package.
I happened to notice it crashes when a package's
Maintainer field in /var/lib/dpkg/status contains
non-Latin characters.
Screen shots of the characters are attached.
Maybe you can duplicate the bug by
1.) copying the cut down version of
/var/lib/dpkg/status
below to your computer and
2.) running debsecan at the command line
$ debsecan
debsecan fails on my computer with
$ debsecan
Traceback (most recent call last):
File "/usr/bin/debsecan", line 1370, in <module>
rate_system(target, options, fetch_data(options, config), history)
File "/usr/bin/debsecan", line 1287, in rate_system
for pkg in packages:
File "/usr/bin/debsecan", line 137, in __iter__
line = self.file.readline()
^^^^^^^^^^^^^^^^^^^^
File "<frozen codecs>", line 322, in decode
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa3 in position 122: invalid start byte
Feel free to let me know if you happen to have any
questions or concerns.
Thanks,
Kingsley
##############################################################################
#
# CUT DOWN VERSION OF /var/lib/dpkg/status STARTS
#
##############################################################################
Package: libharfbuzz0a
Status: deinstall ok config-files
Priority: optional
Section: libs
Installed-Size: 662
Maintainer: £ØÙ
د اÙÙ
ØÙ
ÙØ¯Ù (Ahmed El-Mahmoudy) <aelmahmoudy@sabily.org>
Architecture: i386
Multi-Arch: same
Source: harfbuzz
Version: 0.9.19-1
Config-Version: 0.9.19-1
Replaces: libharfbuzz0
Depends: libc6 (>= 2.4), libfreetype6 (>= 2.3.9), libglib2.0-0 (>= 2.30.0), libgraphite2-3 (>= 1.2.2)
Pre-Depends: multiarch-support
Breaks: libharfbuzz0
Description: OpenType text shaping engine (shared library)
HarfBuzz is an implementation of the OpenType Layout engine (aka layout
engine) and the script-specific logic (aka shaping engine).
.
This package contains the shared libraries.
Homepage: http://www.freedesktop.org/wiki/Software/HarfBuzz
##############################################################################
#
# CUT DOWN VERSION OF /var/lib/dpkg/status STOPS
#
##############################################################################