Answer the question
In order to leave comments, you need to log in
How to display Russian characters in Bash on debian correctly?
The question is, I didn’t notice this before on Debian, now Debian has rolled right now, I haven’t even reached the GUI yet, so far only in the console. When you write something in Russian, then in response it gives an encoding like this:
[email protected]:~$ рпе
bash: $'\321\200\320\277\320\265': команда не найдена
➜ ~ рпе
zsh: command not found: рпе
Answer the question
In order to leave comments, you need to log in
I don't understand why this might bother you.
I also host Debian Weezy.
I tried to enter the same as you into the console:
the answer is:
Then I enter the second test into the console:
Answer:
The third example. I enter a command into the console using the Cyrillic alphabet in a line without quotes
answer:
My summary:
Everything is fine in the console with the encoding and with the Cyrillic alphabet. Until the moment you raised this topic, I personally never had the need to enter commands in Russian.
Probably, if you enter an incorrect command not in Latin, the console will give you a hint in this way. After all, for example, there may be a "ppee" command and a "ppee" command. Can't tell the difference with the eye. But in the first case I wrote in Cyrillic, and in the second in Latin. If the console does not give you an answer in codes, you will never guess that you have errors due to the fact that you forgot to switch the case and you will struggle to fix any error for a very long time.
It is necessary to check whether bash will launch a binary file with a Cyrillic name, if it does, then this is not a bug but a feature. So that the user knows from which particular alphabet the letters in the command were. Therefore, for non-Latin characters, bash displays character codes.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question