D
D
Dmitrii Solovev2015-04-15 18:13:34
linux
Dmitrii Solovev, 2015-04-15 18:13:34

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': команда не найдена

on other distributions (not debian) or zsh on the same one, everything is ok:
➜  ~  рпе
zsh: command not found: рпе

At the same time, everything is Russified. And when creating, for example, a folder with Russian letters in the name, he creates it.
The locale ru.utf-8 costs
PS put debian jessie in the virtual machine - everything is ok there!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
ShamblerR, 2015-04-16
@ShamblerR

aptitude install console-cyrillic

X
xbox, 2015-04-24
@xbox

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.

S
sixhundredsixtyfive, 2015-04-24
@sixhundredsixtyfive

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 question

Ask a Question

731 491 924 answers to any question