![]() |
|
|
Issue Type:
|
Bug
|
Assignee:
|
Thomas E Enebo
|
Created:
|
06/Dec/12 2:11 PM
|
Description:
|
We're seeing an unusual (And fatal) encoding error when running the prawn test suite against jruby 1.7.1 in 1.9 mode.
Here's a test script:
â¡ cat encoding_bug.rb
- coding: utf-8
- this is required to force test-unit to be loaded from a gem instead of
- the stdlib
gem "test-unit"
require 'test/unit'
require 'test/spec'
describe "A wierd encoding issue" do
it "should use trué" do
true.should be_true
end
end
And here's the output:
â¡ jruby encoding_bug.rb
ArgumentError: invalid byte sequence in US-ASCII
=~ at org/jruby/RubyRegexp.java:1487
=~ at org/jruby/RubyString.java:1715
=~ at org/jruby/RubySymbol.java:360
!~ at org/jruby/RubyKernel.java:2118
suite at /home/jh/.gem/jruby/1.9/gems/test-unit-1.2.3/lib/test/unit/testcase.rb:54
reject! at org/jruby/RubyArray.java:2594
delete_if at org/jruby/RubyArray.java:2607
suite at /home/jh/.gem/jruby/1.9/gems/test-unit-1.2.3/lib/test/unit/testcase.rb:54
collect at /home/jh/.gem/jruby/1.9/gems/test-unit-1.2.3/lib/test/unit/collector/objectspace.rb:25
each_object at org/jruby/RubyObjectSpace.java:173
collect at /home/jh/.gem/jruby/1.9/gems/test-unit-1.2.3/lib/test/unit/collector/objectspace.rb:23
AutoRunner at /home/jh/.gem/jruby/1.9/gems/test-unit-1.2.3/lib/test/unit/autorunner.rb:58
call at org/jruby/RubyProc.java:249
run at /home/jh/.gem/jruby/1.9/gems/test-unit-1.2.3/lib/test/unit/autorunner.rb:213
run at /home/jh/.gem/jruby/1.9/gems/test-unit-1.2.3/lib/test /unit/autorunner.rb:12
(root) at /home/jh/.gem/jruby/1.9/gems/test-unit-1.2.3/lib/test/unit.rb:278
|
Environment:
|
â¡ jruby -v
jruby 1.7.1 (1.9.3p327) 2012-12-03 30a153b on OpenJDK 64-Bit Server VM 1.7.0_03-b21 [linux-amd64]
|
Project:
|
JRuby
|
Priority:
|
Minor
|
Reporter:
|
James Healy
|
|
|
|
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira
|
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email