jcodings does not properly produce error for at least two encodings on bad codepoint ------------------------------------------------------------------------------------
Key: JRUBY-5228 URL: http://jira.codehaus.org/browse/JRUBY-5228 Project: JRuby Issue Type: Bug Components: Ruby 1.9 Affects Versions: JRuby 1.6 Reporter: Charles Oliver Nutter Assignee: Thomas E Enebo Two expectations fail from this...the latter two in the following spec from Integer#chr specs: {noformat} 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 {noformat} The EUC_JP line properly produces an EncodingException inside jcodings, but the other two do not. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - 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