jruby/jruby — pull request #183 by ryenus (2012-05-26 08:11:46+00:00)
Title: Fix 6510

This is to fix issue [JRUBY-6510] (https://jira.codehaus.org/browse/JRUBY-6510)

In the past, when there's only 1 argument to `String#encode!`, the argument was always treated as the target encoding to `transcode` to.

This is wrong, because, when the only argument is a hash, it should be treated as the option for `transcode`, not the target encoding.