Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
LoadError with compiled multi-byte constant #4662
run with jruby 220.127.116.11
compile and run with jruby 18.104.22.168
Actual error...may be an IR persistence bug. @enebo?
This was referenced
Jun 12, 2017
Just a recap that encoding was done using String.length() and then dumping the bytes. length() reports characters so derp....fwiw this is not a regression as it has always been coded this way (well 1.7 may have worked but it was a completely different code base for AOT).
This is still likely to break in scenarios where the mbc string is not UTF-8 and JVM file.coding is not UTF-8. 9.2 will address this pervasively as we will be passing ByteList or RubySymbol around and stop using j.l.String altogether.