Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.7.0.pre2
-
Fix Version/s: JRuby 1.7.0.RC1
-
Component/s: Encoding, Standard Library
-
Labels:None
-
Environment:Mac OS X 10.7.4 Java 1.7.0_05
-
Number of attachments :
Description
jruby-1.7.0.preview2 :001 > require 'open-uri'
=> true
jruby-1.7.0.preview2 :002 > open('http://www.isc.tamu.edu/~lewing/linux/sit3-shine.7.gif') { |f| f.read }
Encoding::UndefinedConversionError: Input length = 1
from org/jruby/RubyIO.java:2892:in `read'
from (irb):2:in `evaluate'
from /Users/tim/.rvm/rubies/jruby-1.7.0.preview2/lib/ruby/1.9/open-uri.rb:150:in `open_uri'
from /Users/tim/.rvm/rubies/jruby-1.7.0.preview2/lib/ruby/1.9/open-uri.rb:677:in `open'
from /Users/tim/.rvm/rubies/jruby-1.7.0.preview2/lib/ruby/1.9/open-uri.rb:33:in `open'
from (irb):2:in `evaluate'
from org/jruby/RubyKernel.java:1070:in `eval'
from org/jruby/RubyKernel.java:1395:in `loop'
from org/jruby/RubyKernel.java:1178:in `catch'
from org/jruby/RubyKernel.java:1178:in `catch'
from /Users/tim/.rvm/rubies/jruby-1.7.0.preview2/bin/irb:17:in `(root)'
jruby-1.7.0.preview2 :003 >
This works fine in jruby 1.6.7.2