Project

General

Profile

Actions

Bug #1019

closed

irb/xmp fails because StringInputMethod doesn't support #encoding

Added by pragdave (Dave Thomas) almost 16 years ago. Updated over 13 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
Backport:
[ruby-core:21383]

Description

=begin
% ruby -v -r irb/xmp -e 'xmp("1+2")'

ruby 1.9.1p5000 (2009-01-16 trunk 21610) [i386-darwin9.6.0]

/usr/local/rubybook/lib/ruby/1.9.1/irb/context.rb:166: warning: method redefined; discarding old irb_name
1+2
/usr/local/rubybook/lib/ruby/1.9.1/irb/ruby-lex.rb:243:in block (2 levels) in each_top_level_statement': undefined method encoding' for #XMP::StringInputMethod:0x3e1e44 (NoMethodError)
from /usr/local/rubybook/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in loop' from /usr/local/rubybook/lib/ruby/1.9.1/irb/ruby-lex.rb:230:in block in each_top_level_statement'
from /usr/local/rubybook/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in catch' from /usr/local/rubybook/lib/ruby/1.9.1/irb/ruby-lex.rb:229:in each_top_level_statement'
from /usr/local/rubybook/lib/ruby/1.9.1/irb.rb:145:in eval_input' from /usr/local/rubybook/lib/ruby/1.9.1/irb/xmp.rb:49:in block in puts'
from /usr/local/rubybook/lib/ruby/1.9.1/irb/xmp.rb:48:in catch' from /usr/local/rubybook/lib/ruby/1.9.1/irb/xmp.rb:48:in puts'
from /usr/local/rubybook/lib/ruby/1.9.1/irb/xmp.rb:83:in xmp' from -e:1:in '
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0