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

Handle OSX encoding a bit better #40

Open
bil-bas opened this issue Oct 21, 2012 · 0 comments
Open

Handle OSX encoding a bit better #40

bil-bas opened this issue Oct 21, 2012 · 0 comments
Assignees
Labels
Milestone

Comments

@bil-bas
Copy link
Collaborator

bil-bas commented Oct 21, 2012

A better solution is provided in this workaround for Shoes:

shoes/shoes-deprecated#163 (comment)

class Encoding
  %w[ASCII_8BIT US_ASCII UTF_16BE UTF_16LE UTF_32BE UTF_32LE].each do |ec|
    eval "#{ec} = '#{ec.sub '_', '-'}'"
  end unless RUBY_PLATFORM =~ /linux/
end 

Though might as well use #const_set rather than #eval

@ghost ghost assigned bil-bas Oct 21, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant