We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not sure if I should report this here or to JRuby but the error seems to come from joni:
$ bin/jruby -e 'p [0xA4].pack("C").force_encoding("UTF-8").grapheme_clusters' Unhandled Java exception: java.lang.ArrayIndexOutOfBoundsException: -1 java.lang.ArrayIndexOutOfBoundsException: -1 length at org/jcodings/specific/UTF8Encoding.java:30 isMbcHead at org/jcodings/Encoding.java:497 opCClassMB at org/joni/ByteCodeMachine.java:793 execute at org/joni/ByteCodeMachine.java:203 matchAt at org/joni/ByteCodeMachine.java:167 matchCommon at org/joni/Matcher.java:115 match at org/joni/Matcher.java:92 enumerateGraphemeClusters at org/jruby/RubyString.java:5859 grapheme_clusters at org/jruby/RubyString.java:5872 call at org/jruby/RubyString$INVOKER$i$0$0$grapheme_clusters.gen:-1 call at org/jruby/internal/runtime/methods/JavaMethod.java:309 cacheAndCall at org/jruby/runtime/callsite/CachingCallSite.java:323 call at org/jruby/runtime/callsite/CachingCallSite.java:139 invokeOther5:grapheme_clusters at -e:1 <main> at -e:1 invokeWithArguments at java/lang/invoke/MethodHandle.java:627 load at org/jruby/ir/Compiler.java:94 runScript at org/jruby/Ruby.java:852 runNormally at org/jruby/Ruby.java:771 runNormally at org/jruby/Ruby.java:789 runFromMain at org/jruby/Ruby.java:601 doRunFromMain at org/jruby/Main.java:415 internalRun at org/jruby/Main.java:307 run at org/jruby/Main.java:234 main at org/jruby/Main.java:206
The new spec spec/ruby/core/string/shared/grapheme_clusters.rb added in jruby/jruby#5385 fails due to this.
The text was updated successfully, but these errors were encountered:
Tags added in jruby/jruby@e08e97e and should be removed when this is fixed.
Sorry, something went wrong.
this is related to jruby/jcodings#25, until we'll have unsave and approximate length routines, we will be plagued by such cases.
No branches or pull requests
Not sure if I should report this here or to JRuby but the error seems to come from joni:
The new spec spec/ruby/core/string/shared/grapheme_clusters.rb added in jruby/jruby#5385 fails due to this.
The text was updated successfully, but these errors were encountered: