Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.7.0.pre1
-
Fix Version/s: JRuby 1.7.0.pre2
-
Component/s: Encoding, Ruby 1.9.3, Windows
-
Labels:None
-
Environment:Windows 7 x64
-
Number of attachments :
Description
When trying to install the nokogiri gem in 1.9 mode jruby complains about an invalid byte sequence. Not sure if the problem is with jruby or the gemspec but the gem installs in 1.9 using 1.6.7.
jruby -v --1.9 -S gem install nokogiri
produces output:
jruby 1.7.0.preview1 (ruby-1.9.3-p203) (2012-05-19 00c8c98) (Java HotSpot(TM) Client VM 1.7.0_04) [Windows 7-x86-java] Fetching: nokogiri-1.5.2-java.gem (100%) Invalid gemspec in [C:/Dev/sdk/jruby-1.7.0-preview1/lib/ruby/gems/shared/specifications/nokogiri-1.5.2-java.gemspec]: invalid byte sequence in UTF-8 Successfully installed nokogiri-1.5.2-java
The main problem being invalid byte sequence in UTF-8.
If I try installing the gem in 1.8 mode then there are no problems.
Issue Links
- depends upon
-
JRUBY-6739
Does not read UTF-16 properly
-
Just FYI, it works fine on my Mac OS X machine.