pager: set $LESSCHARSET when we output UTF8 chars
authorLennart Poettering <lennart@poettering.net>
Fri, 28 Aug 2015 16:17:14 +0000 (18:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 31 Aug 2015 11:20:43 +0000 (13:20 +0200)
commita1b4e6e93396c1c449aac4a2a1847033b8ce59f4
tree77c270340754f78fd3017eb7d2fe06ee4b5aff27
parentd79200e26ee39d4b451f95e876fc4595df51fe51
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