-
-
Notifications
You must be signed in to change notification settings - Fork 255
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
[BUG] Unicode encode error with Gitbash #319
Comments
It may be that this fix is required to make git bash work: #226 |
I've just checked #226 doesn't fix that particular issue for me. I can take a look and let you know on my findings. |
well, if I remove
seems like it's an issue of the python itself, e.g. it doesn't properly detect an encoding of the MSYS2 terminal?
|
I think the right fix to detect a proper IO encoding should be done somewhere around here: may require some collaboration with MSYS and Python developers to make it happen. |
some other random notes with an output redirection, it doesn't work:
setting an environment variable
so I think the issue is that mintty is not detected as a console device. |
I think the conclusion here is that this is not a colorama bug, so I'm closing. Please shout if you think I'm wrong. Thank you! |
Related: python/cpython#86873 This is happening for conda-tree which prints outs a tree using '\u251c' or (“├” in Unicode) Even if this is correct behavior with sysout redirection on Windows, we still need a 'correct' place to set the encoding to utf8 (seems to be using |
Hi,
I came accross a strange behaviour when using colorama with in Gitbash.
Here is a test file :
Standard run is OK :
But
stderr
is not empty (we get an error) when printing into a file :The text was updated successfully, but these errors were encountered: