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

the iconv library is deprecated in ruby 1.9.3 #5

Merged
merged 2 commits into from
Apr 22, 2014
Merged

Conversation

rradonic
Copy link
Contributor

@rradonic rradonic commented May 2, 2012

it prints a warning every time it comes across this:

require 'iconv'

iconv is only being used in one place in the calais gem, in Client#enlighten, to convert a string into valid utf-8, ignoring errors. i've migrated this to use ruby 1.9's String#encode, with a fallback to the original code in case the user is running ruby 1.8.

this has silenced the warning and is giving me the same behavior i had before. let me know if you'd like any other changes made to this before inclusion.

regards

@clifff
Copy link

clifff commented Apr 1, 2014

👍 this PR. Would love to see this merged for Ruby 2.0 compatibility.

@bmuller
Copy link

bmuller commented Apr 21, 2014

Got tired of waiting and wrote https://github.com/bmuller/burghers - feel free to use!

@abhay
Copy link
Owner

abhay commented Apr 22, 2014

@bmuller Thanks for this. Given my inactivity on this gem (I don't use it any more), I'd be happy to transfer ownership of this gem to you. Or I can push a change to this gem pointing to yours.

abhay added a commit that referenced this pull request Apr 22, 2014
the iconv library is deprecated in ruby 1.9.3
@abhay abhay merged commit 89bd2e0 into abhay:master Apr 22, 2014
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

Successfully merging this pull request may close these issues.

4 participants