jruby/jcodings — pull request #5 by tychobrailleur (2013-05-01 09:34:48+00:00)
Title: Throw an exception for ASCII when getting bytes for codepoints out of range.

US-ASCII is a 7-bit encoding so when writing bytes for codepoints > 0x7f,
an exception should be thrown. Similarly, ASCII-8Bit should throw an exception for codepoints > 0xff.

This is required so that `Integer#chr` correctly raises a RangeException for invalid values.