Invalid multibyte char in source.rb:11
oliverguenther opened this issue · comments
Oliver Günther commented
The unicode 'bar' icon causes a SyntaxError when using Ruby 1.9.3 p327.
Adding # encoding: utf-8
fixes the error. Really not enough for a pull request, though.
Otherwise, works really well!
/Users/oliver/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': /Users/oliver/.rvm/gems/ruby-1.9.3-p327/gems/graf-0.0.1/lib/graf/source.rb:11: invalid multibyte char (US-ASCII) (SyntaxError)
/Users/oliver/.rvm/gems/ruby-1.9.3-p327/gems/graf-0.0.1/lib/graf/source.rb:11: invalid multibyte char (US-ASCII)
/Users/oliver/.rvm/gems/ruby-1.9.3-p327/gems/graf-0.0.1/lib/graf/source.rb:11: syntax error, unexpected $end, expecting keyword_end
TICK = '▇'
^
from /Users/oliver/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p327/gems/graf-0.0.1/lib/graf.rb:2:in `<top (required)>'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p327/gems/graf-0.0.1/bin/graf:6:in `require_relative'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p327/gems/graf-0.0.1/bin/graf:6:in `<top (required)>'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p327/bin/graf:19:in `load'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p327/bin/graf:19:in `<main>'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `eval'
from /Users/oliver/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in `<main>'
Abhishek Das commented