You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Test output is:
org.jruby.lexer.yacc.SyntaxException: `$�' is not allowed as a global variable name
puts $PROGRAM_NAME
at org.jruby.lexer.yacc.RubyLexer.compile_error(RubyLexer.java:331)
at org.jruby.lexer.yacc.RubyLexer.dollar(RubyLexer.java:1379)
at org.jruby.lexer.yacc.RubyLexer.yylex(RubyLexer.java:1047)
at org.jruby.lexer.yacc.RubyLexer.nextToken(RubyLexer.java:347)
at LexerTest.lexIt(LexerTest.java:38)
at LexerTest.test_UTF16LE_with_globals(LexerTest.java:59)
...
org.jruby.lexer.yacc.SyntaxException: `$�' is not allowed as a global variable name
puts $PROGRAM_NAME
at org.jruby.lexer.yacc.RubyLexer.compile_error(RubyLexer.java:331)
at org.jruby.lexer.yacc.RubyLexer.dollar(RubyLexer.java:1379)
at org.jruby.lexer.yacc.RubyLexer.yylex(RubyLexer.java:1047)
at org.jruby.lexer.yacc.RubyLexer.nextToken(RubyLexer.java:347)
at LexerTest.lexIt(LexerTest.java:38)
at LexerTest.test_UTF16BE_with_globals(LexerTest.java:69)
...
The text was updated successfully, but these errors were encountered:
MRI does appear to be able to run files in UTF-16. This is likely a problem with us handling the encodings of symbols, for which there's numerous other bugs and an in-progress branch. Thoughts, @enebo?
Environment
jruby-complete-9.1.13.0.jar
macOS sierra
Expected Behavior
RubyLexer should be able to provide all tokens in all supported charsets
Actual Behavior
RubyLexer throws a compile error when it sees global variables
Test:
Gist of test: https://gist.github.com/slawo-ch/8a412cf76015af7963213f2de183692c
The text was updated successfully, but these errors were encountered: