You can clone with
my version: 56494d0627e098cc374343fed2a8663928c48651
build with 1.9 mode
rubinius-2.0.0dev :001 > "\u0020".encoding
rubinius-2.0.0dev :002 > /\u0020/.encoding
I'm a bit confused, since MRI and older versions of rbx used UTF-8 for both encodings and I would expect both of them to be the same.
Am I wrong?
What version of MRI are you using?
Rubinius matches MRI behaviour for me:
This behavior is the same as MRI, so this is what is expected. If you want to discuss whether this is correct, you should open an issue with ruby-core to see if they want to change the behavior.
If you see different behavior of MRI, please let us know how to reproduce that behavior.