When I ran the xclock
command in the terminal, I always received the following warning:
Warning: Missing charsets in String to FontSet conversion
I edited my ~/.bashrc
file added the following line to the end:
export LC_ALL=C
And after that my console got weird behavior - I can delete initial characters describing the current user and the path where it is located.
It happens if I write something in Cyrillic. When I am trying to insert the first Cyrillic letter, all I wrote before replaced by �
symbol. Then I can delete initial characters in my console continuing to press backspace
button
Why does the variable LC_ALL
affect my terminal and how can I solve the problem with the warning xclock
without harm to the terminal?
Everything turned out really as the user
@egmont
said.When variable
LC_ALL
defined asC
it sets the encoding for all applications presumably to ASCII(in general, it is only important, that the encoding is changed to another, which does not support the Cyrillic)Initially
LC_ALL
hasn't been defined. If this is the case for you, you can check it out by typing:The variable is empty if you will get an empty line.
The
xclock
's warning as I understand appears because of this - due to the lack of explicitly specified encodingIf you set
LC_ALL
toC
as stated in most internet tips, you clearly specify the encoding. And this encoding is notUTF-8
For problem solution you must explicitly specify the encoding which supports Cyrillic. You can do it by adding the next line to the end of your
~/.bashrc
file: