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>
Wed, 29 Mar 2017 08:45:08 +0000 (10:45 +0200)
commit8ee406453b04c18674c10d7a8b0c112fe4a30942
tree297b697643a6eb14fd8683c97e4826732e26154a
parent1e8d75e46d3c1633e8c5a290677bf64ccd06195e
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
elogind would output UTF-8 but less wouldn't allow it and show them as
control characters.
src/shared/pager.c