chiark / gitweb /
pager: set $LESSCHARSET when we output UTF8 chars
authorLennart Poettering <lennart@poettering.net>
Fri, 28 Aug 2015 16:17:14 +0000 (18:17 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:19:06 +0000 (10:19 +0100)
commit3a8f9a1fefb6e28a09c883de2e639eb2f40f6ba7
treeef9b7f342dd781b2c5ee36450908abfdf2d0856b
parentc08fa87433a5cb3fefefcadb570d03fc6f83dfbb
pager: set $LESSCHARSET when we output UTF8 chars

This way we can be sure that less has the same idea of the terminal as
we do.

This solves issues in systems that have locale uninitalized, where
systemd would output UTF-8 but less wouldn't allow it and show them as
control characters.
src/shared/pager.c