From: Ryan Davis Date: 2009-12-22T07:03:35+09:00 Subject: [ruby-core:27276] Re: [Bug #2511] irb exits unexpectedly windows On Dec 21, 2009, at 13:28 , Vlad Why wrote: > Bug #2511: irb exits unexpectedly windows > http://redmine.ruby-lang.org/issues/show/2511 > > Author: Vlad Why > Status: Open, Priority: Low > Category: lib > ruby -v: ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mswin32] > > WINDOWS XP > > D:\server\ruby\bin>chcp > Active code page: 866 > > D:\server\ruby\bin>irb > irb(main):001:0> ������������ <---- russian chars > > D:\server\ruby\bin> <----- exited > > also I can't type any characters with "right alt" using belgium/french keyboard layout ( "AltGr"+2 = @ "AltGr"+3 = # ....) > > I always disable readline with this .... no colors, no autocompletion ((((( > > require File.dirname(__FILE__) + '/readline/readline' > module Readline > def readline prompt, something > print prompt > return $stdin.gets.strip > end > def self.readline prompt, something > print prompt > return $stdin.gets.strip > end > end I don't have any solutions for you, but I think you can reduce your above workaround via: @use_readline = IRB.conf[:USE_READLINE] Setting to false should bypass readline.