Ruby 3.1.0 encoding(?) problem in irb (RubyInstaller Windows 10)

181 Views Asked by At

Since the update to 3.1.0 via RubyInstaller under Win 10 there is a problem with alt gr in irb. When I try to enter { (German keyboard alt gr + {) I get ^[{. Any idea what's going wrong? BTW 3.0.2 was working fine.

2

There are 2 best solutions below

0
On

Alternatively you can install or update reline using gem :

gem install reline

This issue (altgr+4 => ^[{) also occurs with irb/ruby installed via msys2. As a side effect you might notice a speed up when copy/pasting inside irb.

Ps: not enough reputation to just comment previous answer

2
On

Fixed:

git clone https://github.com/ruby/reline

cd reline

rake install

https://github.com/ruby/reline/pull/425