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

Incorrect encoding on Ruby 1.9.1 #63

Closed
avongluck-r1soft opened this issue Aug 14, 2015 · 2 comments
Closed

Incorrect encoding on Ruby 1.9.1 #63

avongluck-r1soft opened this issue Aug 14, 2015 · 2 comments
Assignees

Comments

@avongluck-r1soft
Copy link

Seeing this on Ruby 1.9.1.

# aptly-cli 
/usr/local/bin/aptly-cli:23:in `load': /var/lib/gems/1.9.1/gems/aptly_cli-0.1.5/bin/aptly-cli:28: invalid multibyte char (US-ASCII) (SyntaxError)
/var/lib/gems/1.9.1/gems/aptly_cli-0.1.5/bin/aptly-cli:28: invalid multibyte char (US-ASCII)
/var/lib/gems/1.9.1/gems/aptly_cli-0.1.5/bin/aptly-cli:28: syntax error, unexpected $end, expecting keyword_end
... would be created if it doesn’t exist.'
...                               ^
    from /usr/local/bin/aptly-cli:23:in `<main>'

Solution is to add the following to the aptly-cli script just below #!/usr/bin/env ruby

#!/usr/bin/env ruby
# encoding: utf-8
@sepulworld
Copy link
Owner

Thank you! Testing fix now

@sepulworld sepulworld self-assigned this Sep 9, 2015
@sepulworld
Copy link
Owner

Oh, this if for Ruby 1.9.1. This version of Ruby has gone EOL a while back, but adding this doesn't appear to break any of the newer versions. I added it and updated the gem to 0.1.6. The Travis tests all pass

https://rubygems.org/gems/aptly_cli

Hope that helps out!

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