Raku / nqp

NQP
Other
343 stars 131 forks source link

[JVM] Support encoding/decoding for utf16le #738

Closed usev6 closed 3 years ago

usev6 commented 3 years ago

This follows what was done for utf16be support in 5ce0d49f44.

I'm not totally sure if this really is all that needs to be done. But since UTF-16BE is part of Java's basic encoding set, I'd hope things just work.

usev6 commented 3 years ago

I consider to just merge this before the next release. The change only affects the JVM backend and there is always the option to revert. The change would make some tests in https://github.com/Raku/roast/blob/40756aef47/S32-encoding/registry.t pass. (There is still a problem with the encoding windows932 but that's a different story.)