Bug#672361: bootlogd: escape sequences should be filtered out

Vincent Lefevre vincent at vinc17.net
Fri Aug 9 08:43:16 BST 2019

On 2019-08-08 19:24:23 -0300, Jesse Smith wrote:
> I'm not sure we want to do that. Perhaps the ideal would be a small
> degree of filtering to remove the positional control characters (like
> '\r') while leaving the rest in to allow for colour to be displayed?

I think so. Filter \r out, which is proved to be wrong (a date
is added at the beginning of the line). Concerning the escape
sequences, either leave them as they are (just like for
/var/log/boot.log under systemd) or remove them entirely with
ansi2txt from the colorized-logs package.

Vincent Lefèvre <vincent at vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

More information about the Debian-init-diversity mailing list