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

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

Merged
merged 1 commit into from Jun 24, 2013
Merged

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

merged 1 commit into from Jun 24, 2013

Conversation

romuloceccon
Copy link
Contributor

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
RangesIO#write corrupts output if passed a UTF8 string
@aquasync aquasync merged commit 5d4652f into aquasync:master Jun 24, 2013
@romuloceccon romuloceccon deleted the encoding_bug_fix branch July 16, 2013 13:33
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.

None yet

2 participants