RangesIO#write corrupts output if passed and UTF8 string #14

merged 1 commit into from Jun 24, 2013


None yet
2 participants

romuloceccon commented Jun 17, 2013

RangesIO#write has a bug which corrupts the output file if the encoding is UTF-8, due to differences between the string size as reported by String#length and the actual number of bytes written (as File#tell would report). This patch fixes de issue.

aquasync added a commit that referenced this pull request Jun 24, 2013

Merge pull request #14 from romuloceccon/encoding_bug_fix
RangesIO#write corrupts output if passed a UTF8 string

@aquasync aquasync merged commit 5d4652f into aquasync:master Jun 24, 2013

@romuloceccon romuloceccon deleted the romuloceccon:encoding_bug_fix branch Jul 16, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment