rubyirb

IRB crashing with unicode


I have a very weird problem with Ruby version 2.6.5p114 in Microsoft Windows 10 Enterprise OS Version: 10.0.18363 N/A Build 18363. When i insert a Unicode character in Greek lets say i try this

browser.input(:value => "Εκτύπωση").click 

Instead of the usual response, the cmd just crashes and powershell gives [process exited with code 1] and becomes unresponsive.

Does anyone know how to fix this. I have tried installing and uninstalling i have change the unicode that the Windows uses but no luck. Thanks for your time


Solution

  • Ok it seems i figured out something. If you start the irb with the noreadline switch everything is fixed.

    irb --noreadline
    

    Does anyone know why this is happening??