Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.6RC1
-
Fix Version/s: None
-
Component/s: Ruby 1.9.2
-
Labels:None
-
Number of attachments :
Description
Two expectations fail from this...the latter two in the following spec from Integer#chr specs:
it "raises a RangeError if self is an invalid codepoint for the given encoding" do
lambda { 0x81.chr(Encoding::EUC_JP) }.should raise_error(RangeError)
lambda { 256.chr(Encoding::ISO_8859_9) }.should raise_error(RangeError)
lambda { 620.chr(Encoding::TIS_620) }.should raise_error(RangeError)
end
The EUC_JP line properly produces an EncodingException inside jcodings, but the other two do not.
This would probably be fixed by updating the tables in jcodings. Marcin is looking into this now.