Encoding::compatible? should also accept Encoding objects as parameters
Some software needs to do transcoding of strings or regexps to be compatible with incoming data from either a file or strings passed as parameters etc. It needs to say things like:
It is possible to do this by creating dummy strings in the encodings, and passing those, but in that case Ruby seems to try to optimize them based on content (eg: null strings), and so can say that the strings are compatible when in fact in general the encodings are not.
So the request is to allow Encoding::compatible? to accept Encoding objects as well as strings and Regexps.