soywiz-archive / jtransc

Bytecode to source converting Java & Kotlin code into JavaScript, C++, D, C#, PHP, AS3, Dart and Haxe and run it everywhere. Also use JVM code in your favourite language as a library.
https://jtransc.soywiz.com/
Apache License 2.0
632 stars 67 forks source link

C++ target doesn't support strings with surrogate pairs #213

Open soywiz opened 7 years ago

soywiz commented 7 years ago

https://github.com/jtransc/jtransc/blob/7dcdac0a6dfb7e23f0f005d07af4fe47ac4b214c/jtransc-main/test/javatest/nio/ModifiedUtf8Test.java#L14

//expect(new byte[]{0, 15, 104, 101, 108, 108, 111, -64, -128, -62, -128, -19, -81, -65, -19, -65, -65}, "hello\0\u0080\uDBFF\uDFFF"); // Surrogate pairs