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

Loose bytesize fix #51

Merged
1 commit merged into from
Jan 13, 2011
Merged

Loose bytesize fix #51

1 commit merged into from
Jan 13, 2011

Conversation

hiroshi
Copy link
Contributor

@hiroshi hiroshi commented Jan 2, 2011

Fix a ruby 1.9 encoding problem,
"LooseObjectError: size mismatch" by committing non-ASCII content.

String#length may return number of characters in the encoding of the string. Instead, we should use String#bytesize.

P.S. I found this problem when I tried to get a gollum site worked.

"LooseObjectError: size mismatch" by committing non-ASCII content.

String#length returns number of characters in the encoding of the string. Instead, we should use String#bytesize.
@technoweenie
Copy link
Collaborator

Ah, thanks! Sorry, I forgot to check the pull requests before pushing out 1.4.1 this morning. I'll probably do another patch release with this bug fix soon.

@ralfebert
Copy link

So far, no patch release has been released, this breaks gollum in a rather unfortunate way for any UTF8 character in the wiki text, could this fix please be released?

@arr2036
Copy link

arr2036 commented May 27, 2011

I just ran into this on our production wiki. Any chance this could be merged into a release? This really breaks things in a pretty major way...

This pull request was closed.
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.

6 participants