Unable to output Cyrillic
The Ubuntu Nerd font is installed on the system.
xfontsel
defines the font. As you can see in the screenshot, the Cyrillic alphabet is displayed correctly (the last line)
man iso_8859-5
it tells me under which code I can get one or another character of my encoding
In the Xresources
configuration file I am specifying the sequence of the Cyrillic alphabet:
...
Xlogin*titleMessage: \260\261\262\263\264\265\266
xlogin*greeting: \260\261\262\263\264\265\266
xlogin*namePrompt: Username:\040
xlogin*passwdPrompt: Password:\040
xlogin*fail: Authentication failed
...
xlogin*greetFont: -*-ubuntu nerd font-*-r-normal-*-17-120-100-100-*-*-iso8859-5
xlogin*font: -*-ubuntu nerd font-*-r-normal-*-17-120-100-100-*-*-iso8859-5
xlogin*promptFont: -*-ubuntu nerd font-*-r-normal-*-17-120-100-100-*-*-iso8859-5
xlogin*failFont: -*-ubuntu nerd font-*-r-normal-*-17-120-100-100-*-*-iso8859-5
xlogin*greetFace: Ubuntu Nerd Font-14:bold
xlogin*face: Ubuntu Nerd Font-10
xlogin*promptFace: Ubuntu Nerd Font-12:bold
xlogin*failFace: Ubuntu Nerd Font-10:bold
But when starting xdm
, I get the wrong characters that I specified in the configuration file.
What could be the problem?
I have already tried various solutions to the problems. The locale
is set in the required encoding. The Xresources
file is also in UTF-8 format. I've already tried everything. But as a result, when I output the text, I get a two-byte representation of each Cyrillic character. It feels like xdm
doesn't understand UTF-8.
Another setting option. It feels like xdm
doesn't see the specified font:
xlogin*titleMessage: Добро пожаловать
xlogin*greeting: Добро пожаловать
xlogin*namePrompt: Пользователь:\040
xlogin*passwdPrompt: Пароль:\040
xlogin*fail: Ошибка аутентификации
xlogin*greetFont: -*-ubuntu nerd font-*-r-*-*-*-*-*-*-*-*-*-uni
xlogin*font: -*-ubuntu nerd font-*-r-*-*-*-*-*-*-*-*-*-uni
xlogin*promptFont: -*-ubuntu nerd font-*-r-*-*-*-*-*-*-*-*-*-uni
xlogin*failFont: -*-ubuntu nerd font-*-r-*-*-*-*-*-*-*-*-*-uni
xlogin*greetFace: Ubuntu Nerd Font-14:bold:italic
xlogin*face: Ubuntu Nerd Font-10
xlogin*promptFace: Ubuntu Nerd Font-12:bold
xlogin*failFace: Ubuntu Nerd Font-10:bold