For some reason, I cannot play accented characters in the console [é, ü, etc.]

This worked fine until the Mac OS update. I reinstalled RVM, rails, ruby, everything. Nothing is working yet.

In my Mac terminal, I can create é , but once in the console I can create a character with alt + character , and then when I type the letter to which the character is assigned, it deletes the character.

In my ~/.rvmrc :

 export ruby_configure_flags="--with-readline-dir=/usr/local/Cellar/readline/6.2.4" 

Any ideas?

I have finalized so far by explicitly enabling readline-rb .. I think my global requirement is not working.

 gem 'rb-readline', '~> 0.4.2' 
+6
source share
1 answer

If there is no other answer, I will write it now.

I just wrote access to Readline with a gem in my application directly:

 gem 'rb-readline', '~> 0.4.2' 

The reason I specifically chose 0.4.2 is because, from August 14, 2013, there is an existing error with later versions.

Somehow, when I updated the OS, the call to my Brew Readline installation was no longer relevant. I do not know why. I suppose there is a way to align paths again so that it can potentially work globally in all my applications, but at the moment I have only one sensitive to international relations.

+1
source

Source: https://habr.com/ru/post/951580/


All Articles