#11 ✓resolved
h3rald (at h3rald)

rawline_irb.rb not working on Ruby 1.9.1

Reported by h3rald (at h3rald) | March 12th, 2009 @ 01:26 PM | in 0.3.2


C:/Ruby/lib/ruby/1.9.1/irb/input-method.rb:108:in `initialize': undefined method `encoding' for nil:
NilClass (NoMethodError)
        from rawline_irb.rb:26:in `new'
        from rawline_irb.rb:26:in `<module:IRB>'
        from rawline_irb.rb:24:in `<main>'

This is due to the fact that IRB.conf[:LC_MESSAGE] is not set.

The script should be updates as follows:


# ...
module IRB
 	@CONF[:LC_MESSAGES] = Locale.new # <<<
	@CONF[:SCRIPT] = RawlineInputMethod.new
end
IRB.start

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

RawLine is a 100% Ruby library able to provide some of the functionality offered by ReadLine, plus additional features such as a more intuitive way to bind characters to specific keys or key sequences.

People watching this ticket

Tags

Referenced by

Pages