Skip to content

Minor ruby 1.9 utf-8 fix #1

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Minor ruby 1.9 utf-8 fix #1

wants to merge 5 commits into from

Conversation

sreeix
Copy link

@sreeix sreeix commented Sep 13, 2010

Hi,
I am playing with gearman on ruby 1.9 and i got errors with the lib with messages like
Gearman::NetworkError - Wrote 2678 instead of 2676:

The String was utf-8 and hence the bytesize and string size does not match. I have fixed it by using bytesize method. So It should work for both 1.8 and 1.9

Cheers
sreekantg

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.

1 participant