Bug#934502: lsb-base: avoid '\r' in logging functions
Dmitry Bogatov <[email protected]> Sun, 11 Aug 2019 17:47:35 +0000
| Newsgroups | gmane.linux.debian.devel.lsb |
|---|---|
| Message-ID | <20190811174750.8699427F2B__647.899489716508$1565545724$gmane$org@disroot.org> |
--10728_Sun_Aug_11_17_47_34_UTC_2019
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Package: lsb-base
Version: 10.2019051400
Severity: wishlist
File: /lib/lsb/init-functions
Dear Maintainer,
please change output format of logging functions, provided by
`/lib/lsb/init-functions'.
Currently, status marker -- green [ok], red [FAIL], blue [warn], etc. -- is
printed at the start of terminal line.
It causes numerous glitches. Here is incomplete list of them. For sake of
brevity, I will talk about [ok] marker only. Other markers behave in same w=
ay.
* If message contains newline, [ok] marker will displace message text.
Before:
[..] This is
very important message
After:
[..] This is
[ok] important message
Expected:
[ok] This is
very important message
* If message is longer then terminal width, it will be span several termin=
al
lines, causing problem described above.
Please, change format to following:
Before:
This is very important message...
After:
This is very important message... ok
If message spans several lines, it will look like following:
This is
very important message... ok
Aligning markers on right border of terminal will cause glitches when messa=
ge
length is equal to terminal width, so please don't.
Before:
This is long message ...
After:
This is long message .ok
--10728_Sun_Aug_11_17_47_34_UTC_2019
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
iQIzBAEBCgAdFiEEhnHVzDbtdH7ktKj4SBLY3qgmEeYFAl1QVLYACgkQSBLY3qgm
EeaPEQ//VV/J1gldk//MhPr6BEDRENo74KTPFSE5Mf3ypCfZIVYbA4Jlfg95cOI3
FF3PUAgLQrBkCGmX96hVM2fLsyFdl17FciyYXoZlaE/5KhPBVFucbUeaQGvdmkko
K8YDAi6P8FkwczQ4iLDgAzCEfRuYQg0zEfZQYKbPalhSQ+Yndn2I2PLZTrUV+FrY
W8E9srOm/IWtD7yOcgnf5VCb4H7sY88mQQK3dejjWj44TD/Uy14QedRU9/4S8wy+
pkyYvfGR8FDaM1BLNbs4UuZCMokgA/YP5rn5No6q3gDtIzeL6PDQzNAk4YmpSdGx
vWwWLYhlAU9TPY+VGW1+3G2+VU5nEOkpwke9zDDN9hbQ43V8nI7bNRYiJ89e+Sbk
SIH7j5LbH1gPNTjm5U9jQD3dgTB1Zs/YBw16DVVDYbxQ/JJXzPWLDRPwYyj/x+I/
VLPjK8Ku0xUBIQTUk8j7+pRj1Ksuy1iA5IZRL2kKBIeQOIf64ePQUtzyAuNGZYgb
5hExLJ1Ysdo7Rjy5GkpNH0Cilu4qv8s0cHp8ziQ9Yc1fChdlNKPIHc/kay0Lf7NF
MAyX5c0SXZsoCpDYCrfnJ32hymJNQ4vHCvgidsNhF85rFzq7py65xBxV+enBLXKT
eiFZlGNerpSo5O54igg9qntBhIIyjHlc8FKpC84IoSU2BJKFjSw=
=qKO+
-----END PGP SIGNATURE-----
--10728_Sun_Aug_11_17_47_34_UTC_2019--