Skip to content

9k fail to compile ruby code of using multibyte char on Windows #3175

@yousuketto

Description

@yousuketto

I have used jruby 9.0.0.0 on Windows.
9k fail to compile ruby code of using multibyte char.
I was comfirmed using jrubyc and JRuby.compile_ir, warble compiled war

  • ex) use jrubyc
# coding: utf-8
puts "あ"
C:\workspace>jrubyc target.rb
SyntaxError: target.rb:2: invalid multibyte char (UTF-8)
puts "???"

                                parse at file:/C:/workspace/jruby-9.0.0.0/lib/jruby.jar!/jruby/jruby.rb:66
                           compile_ir at file:/C:/workspace/jruby-9.0.0.0/lib/jruby.jar!/jruby/jruby.rb:78
  block in compile_files_with_options at C:/workspace/jruby-9.0.0.0/lib/ruby/stdlib/jruby/compiler.rb:159
                                 call at org/jruby/RubyProc.java:308
  block in compile_files_with_options at C:/workspace/jruby-9.0.0.0/lib/ruby/stdlib/jruby/compiler.rb:291
                                 each at org/jruby/RubyArray.java:1560
           compile_files_with_options at C:/workspace/jruby-9.0.0.0/lib/ruby/stdlib/jruby/compiler.rb:275
                         compile_argv at C:/workspace/jruby-9.0.0.0/lib/ruby/stdlib/jruby/compiler.rb:94
                                <top> at C:/workspace/jruby-9.0.0.0/bin/jrubyc:5

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions