Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 651412 - /var/log/rc.log contains ugly ^O (0xf, ncurses related?)
Summary: /var/log/rc.log contains ugly ^O (0xf, ncurses related?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: OpenRC (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: OpenRC Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-25 09:40 UTC by Toralf Förster
Modified: 2018-05-22 22:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2018-03-25 09:40:06 UTC
Booted today into new stable kernel and see using

$> less /var/log/rc.log

this now:

 *^O Starting smartd ...
 [ ok ]^O
 *^O /var/run/tor: creating directory
 *^O /var/run/tor: correcting owner
 *^O Starting tor ...
 [ ok ]^O
 *^O Starting local ...
 [ ok ]^O

rc default logging stopped at Sun Mar 25 11:01:42 2018


Where does the escape sequence ^O come from?
Comment 1 dwfreed 2018-03-26 01:35:08 UTC
That is coming from your terminal's "me" termcap sequence.  "me" is used to reset SGR attributes (bold, color, etc) back to default.  ^O is the Shift-In character, which is used by ISO-2022 supporting terminals to ensure you're back on the G0 character set (the main one, typically ASCII).

I'm wondering if we shouldn't just have rc-logger strip all non-printable characters, in addition to escapes and CSI sequences (which it already strips).
Comment 2 Toralf Förster gentoo-dev 2018-03-26 17:49:05 UTC
(In reply to dwfreed from comment #1)
FWIW this happens just now, not before the ncurses/kernel update.
Comment 3 William Hubbs gentoo-dev 2018-05-09 22:38:42 UTC
This will be included in OpenRC 0.36.

https://github.com/openrc/openrc/commit/2b1392af
Comment 4 William Hubbs gentoo-dev 2018-05-11 00:35:01 UTC
I will be taking back this commit, it seems to create issues when
shutting down.
Comment 5 William Hubbs gentoo-dev 2018-05-22 22:19:05 UTC
The following commit fixes this and will be in OpenRC 0.36.

https://github.com/openrc/openrc/commit/7e56a49e