GitHub user chingor13 opened a pull request:

    https://github.com/apache/avro/pull/13

    use bytesize on buffer string

    If your character encoding is UTF-8 or some other multibyte encoding, then 
the message length header is incorrectly calculated.
    
    In ruby, `String#size` returns the semantic length, but we really want 
`String#bytesize` here. `bytesize` has been available on `String` since at 
least ruby 1.8.7


You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/avvo/avro fix_bytesize

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/avro/pull/13.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #13
    
----
commit 07925e7f2061601d95570dd1257decf159b8ab50
Author: Jeff Ching <[email protected]>
Date:   2014-09-02T22:16:19Z

    use bytesize on buffer string

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to