Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upException 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