rubinius/rubinius — pull request #1758 by caiquanqing (2012-05-30 14:59:35+00:00)
Title: Return ASCII-8BIT(BINARY) as encoding for a string if there is no encoding set for it

Return ASCII-8BIT(BINARY) as encoding for a string if there is(for example if a string comes from socket.recv), it is how MRI behaves.

Change in string.cpp breaks specs for integer19.chr, array.pack19 and zlib<<, hence fixed them as well.

It fixed Issue #1644.