dpkg: normalize description fields (Was: Re: Bug#986840: apt-listchanges fails to parse status files with ^M characters; should use apt_pkg.TagFile, not write its own parser)
Control: clone -1 -2
Control: reassign -2 dpkg
Control: retitle -2 dpkg: normalize description fields
On Mon, Apr 12, 2021 at 08:14:07PM +0200, Julian Andres Klode wrote:
> Package: apt-listchanges
> Version: 3.23
> Severity: normal
> X-Debbugs-Cc: firstname.lastname@example.org
> As reported in https://bugs.launchpad.net/ubuntu/+source/apt-listchanges/+bug/1854772, apt-listchanges
> fails to parse status files that contain carriage return characters, as
> Python normalizes the line endings.
> Instead of writing its own ad-hoc parser, apt-listchanges should use
> apt_pkg.TagFile instead.
I think it could be useful if dpkg could normalize description fields
too, to make the database safer to parse. I have not checked if the
output dpkg prints when reporting status is safe or not.
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer i speak de, en