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

Fixing encoding issue in core_ext/string.rb #3

Open
jcf opened this issue Mar 11, 2010 · 1 comment
Open

Fixing encoding issue in core_ext/string.rb #3

jcf opened this issue Mar 11, 2010 · 1 comment

Comments

@jcf
Copy link

jcf commented Mar 11, 2010

When running webby-gen under Ruby 1.9.1 an invalid multibyte character in the String extensions file will potentially produce an encoding error.

webby-0.9.4/lib/webby.rb:104:in `require': gems/ruby-1.9.1-p378/gems/webby-0.9.4/lib/webby/core_ext/string.rb:15: invalid multibyte char (US-ASCII) (SyntaxError)

webby-0.9.4/lib/webby/core_ext/string.rb:15: invalid multibyte char (US-ASCII)

This can be fixed by simply specifying UTF-8 encoding throughout the string extensions file using something like…

# encoding: utf-8

Maybe this fix could be added to master?

@robertwahler
Copy link

Thanks for that. I can run the specs now under 1.9.1 but there are three failures due to the core extension to Hash.

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