Skip to content
New issue

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

Parse error with LC_ALL=en_US.iso88591 #3005

Closed
bjfish opened this issue May 29, 2015 · 1 comment
Closed

Parse error with LC_ALL=en_US.iso88591 #3005

bjfish opened this issue May 29, 2015 · 1 comment

Comments

@bjfish
Copy link
Contributor

bjfish commented May 29, 2015

This issue was found on Linux.
Example:

# -*- coding: utf-8 -*-

puts "Parsed"

Expected

$ LC_ALL=en_US.iso88591 ruby helloworld.rb 
Parsed

Actual

$ LC_ALL=en_US.iso88591 ./bin/jruby helloworld.rb 
UTF8Encoding.java:35:in `length': java.lang.ArrayIndexOutOfBoundsException: -1
    from MultiByteEncoding.java:209:in `strLength'
    from ByteList.java:594:in `lengthEnc'
    from SymbolNode.java:63:in `<init>'
    from RubyParser.java:4231:in `execute'
    from RubyParser.java:1648:in `yyparse'
    from RubyParser.java:1539:in `yyparse'
    from RubyParser.java:5257:in `parse'
    from Parser.java:119:in `parse'
    from Parser.java:100:in `parse'
    from Ruby.java:2750:in `parseFileAndGetAST'
    from Ruby.java:2743:in `parseFileFromMainAndGetAST'
    from Ruby.java:2731:in `parseFileFromMain'
    from Ruby.java:607:in `parseFromMain'
    from Ruby.java:553:in `runFromMain'
    from Main.java:401:in `doRunFromMain'
    from Main.java:296:in `internalRun'
    from Main.java:225:in `run'
    from Main.java:197:in `main'

Found at commit 8af0669

@headius headius added this to the JRuby 9.0.0.0 milestone Jun 2, 2015
@enebo enebo modified the milestone: JRuby 9.0.0.0 Jul 14, 2015
@kares
Copy link
Member

kares commented Dec 8, 2020

this has been resolved somewhere along the line of 9.x releases (>= 9.1.8.0 works).

@kares kares closed this as completed Dec 8, 2020
@kares kares added this to the Invalid or Duplicate milestone Dec 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants