Minor ruby 1.9 utf-8 fix #1

Open
wants to merge 5 commits into
from

Conversation

Projects
None yet
1 participant

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