-
-
Notifications
You must be signed in to change notification settings - Fork 933
Systems with non-English locales fail in some cases #290
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
Comments
Previously, only program messages where forced to the C-locale, now we force the entire program. That way, we should assure a remote will not provide us with branch information in any other language but english. Related to #290
I am still trying to reproduce the issue on a VM, but have nonetheless provided a potential fix. You might be able to verify it earlier than I do - I will however keep you posted. |
This is a pre-emptive measure based on http://goo.gl/l74GC8 . Related to #290
Please try the latest master - even on a virtual machine I was unable to get git into non-english mode, for some reason. Any other program I used (e.g. |
You can watch the development stream on youtube.
|
Thanks for uploading the video, it was interesting to watch. Sorry to make you spend a while on something I hoped wouldn't take very long! I'm not sure why you weren't able to get git in another language. I followed nearly the same procedure as you in the VM and I was able to do it. These things tend to be shaky, so maybe it's down to a difference in Ubuntu version or installed packages? At any rate, the provided fix works for me. I asked the original reporter to test it, but I suspect it will work for him too. |
Good to hear ! Please feel free to close this issue once it works for the upstream reporter. NOTE: I'd probably want to make a new release on pypi, but unfortunately they lost support for OpenID, which terminated my account as well. There is no way for me to login, and the site to reset an account doesn't work either ... . I will reach out to @empty to re-authenticate the new account I made. |
I've seen the following variant of this error sometimes when this is emitted from the underlying
The initial git command thus fails, but retrying it typically makes it work again since the warning is not emitted a second time. Perhaps a solution could be to ignore lines starting with |
@nvie Warning lines could be ignored above this line quite nicely. It might even work assuming that the language of If you would like to get your hands dirty and submit a PR, I'd happily merge it. |
Previously reported as #68, this is still broken. The current insufficient fix is here: git/cmd.py#552
Originally reported downstream here: earwig/git-repo-updater#11
Steps to reproduce:
sudo locale-gen fr_FR.UTF-8 && sudo dpkg-reconfigure locales
export LANGUAGE=fr_FR.UTF-8
export LC_ALL=fr_FR.UTF-8
python -c "import git; git.Repo('path/to/a/repo').remote().fetch()"
The text was updated successfully, but these errors were encountered: