jruby/jruby — pull request #457 by kou (2012-12-20 04:28:46+00:00)
Title: Accept Encoding object for Encoding.compatible?

With this change, the following calls are supported:

Encoding.compatible?(Encoding.find("UTF-8"),
"US-ASCII")
# => #

Encoding.compatible?("UTF-8",
Encoding.find("US-ASCII"))
# => #

Encoding.compatible?(Encoding.find("UTF-8"),
Encoding.find("US-ASCII"))
# => #

The following calls are supported before this changes:

Encoding.compatible?("UTF-8",
"US-ASCII")
# => #