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

Invalid multibyte char in source.rb:11 #1

Closed
oliverguenther opened this issue Jul 14, 2013 · 1 comment
Closed

Invalid multibyte char in source.rb:11 #1

oliverguenther opened this issue Jul 14, 2013 · 1 comment

Comments

@oliverguenther
Copy link

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>'
@abhshkdz
Copy link
Owner

Thanks for pointing out! @samuel02 fixed it already. b65778e

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants