-
-
Notifications
You must be signed in to change notification settings - Fork 918
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
Exception if GIT_COMMITTER_NAME contains UTF-8 encoded Umlaut #237
Comments
This is an interesting one ! git-python does handle non-ascii encodings, and defaults to utf-8. I will review how encodings are handled to make sure something like this can't easily happen. In the meanwhile, can you post the test in |
You can watch the archived development stream on youtube |
thank you very much for the fast fix. |
@Byron A similar issue occurs in GitPython-1.0.1 (tested with Python 2.7 and 3.4) when I try to do Repo.git.blame() and the blame output contains some funny characters. Is this issue fixed somewhere upstream, so that I use a later version? |
@saheel1115 |
@Byron Cool, sounds perfect. Thanks! |
The |
@jrydberg It could be that whatever it is trying to parse is not actually encoded in UTF-8. The current implementation doesn't handle encodings properly at all, unfortunately, and I am afraid there is no fix for that unless one changes all |
If I run the python script using gitpython with this env var:
export GIT_COMMITTER_NAME="Thomas Müller"
I get this exception:
Version: GitPython==0.3.5
The text was updated successfully, but these errors were encountered: