AlYuSed wrote:KOI-8R is obsolete.
It is not obsolete at all. It is just not intended for an X terminal, but only for a Linux console. And it is indeed suitable for Russian as it includes all the needed glyphs.
You can check that: just type in a Linux console (
not in xfce4-terminal)
to display all glyphs included in the loaded font.
AlYuSed wrote:Apparently, the man pages are written using this encoding, that's why I have everything well displayed in Russian, apart from them.
No. the man pages are written in UTF-8 encoding but the Terminus fonts include an UTF-8 table that maps the Unicode code point of a given character to its legacy 8-bits encoding, in this specific case KOI8-R.
This is necessary because a plain Linux console can display only a set of 256 character at any given time.
To overcome this limitation, you would need to use instead a framebuffer terminal like
fbterm.
AlYuSed wrote:As a quick and dirty solution I do this: LANG=C man slapt-get
Not a solution at all.
Russian letters are displayed normally with Terminus, but not in the man pages. The only difference is that now man pages do not display the squares, but the question marks.
Again Terminus fonts are not intended for an X terminal at all.
The solution is to just setup correctly xfce4-terminal. I will refer to Terminal's menu in English.
1) Click Edit => Preferences => Appearance and choose for instance the font "DejaVu sans Mono Book" with the size you prefer.
2) Click Terminal => Set Encoding and choose "Default (UTF-8)"
If I do that, then start Terminal with LANG set to ru_RU.utf8 and type "man slapt-get", here is what I get: