-
Notifications
You must be signed in to change notification settings - Fork 64
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
diff_to_html.rb:318:in `split': invalid byte sequence in US-ASCII (ArgumentError) #103
Comments
Btw, works fine with 1.8.7 ; I've reverted now to Ruby 1.8. I just realized this is kind of the same like Issue 103 |
Thanks for the report. |
Some more information: I tried to reproduce this problem in another environment and it worked without problems. Trying to narrow it down, I compared the I was able to fix this on my end up setting the
Or, to describe it the other way: I can easily reproduce this problem locally when I set I found a workaround by always forcing UTF-8, because the git commands in use (git log, git show) default to UTF-8. See https://github.com/bitboxer/git-commit-notifier/pull/105 . |
I still have the same issue, albeit the error message is a bit different; it now references
(I can't reopen the issue, no permissions) |
In case you want to test it yourself, here's the dummy repository I used for testing (it's a git repos in a tar.bz2): http://my-serve.rs/tmp/foo.tar.bz2 ; it contains differences in files as well as commit messages with non-US-ASCII characters. The above shown command can be simply applied to it. This was tested with locale |
When pushing commits to repository containing e.g. UTF8 characters, I get this:
What I mean is that the diff change I did to one file contained UTF8 characters on which the diff_to_html library chokes.
The text was updated successfully, but these errors were encountered: