-
Notifications
You must be signed in to change notification settings - Fork 9
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
A few more Unicode issues with Windows #3
Comments
When you say 1. works after re-decoding, does it still display as a tick/cross? |
It does in Cygwin's terminal. In cmd.exe it doesn't, that's most likely because of the font, it also doesn't support escape codes that change colours. |
Do you have this issue both in Cygwin and the Command Prompt? |
Just checked, cmd.exe behaves the same way both with and without Non-ASCII symbols in .toc-files cause an exception in both of them. |
What is the value of |
Cygwin:
cmd.exe:
|
Um, but then |
For some reason, when I launch the instawow's binary, it's equal to cp1252. |
If that were the case the tick should've been mangled into |
That is... confusing. I'm also wondering what might've transpired since #1 when we (thought we) fixed this 🤷♂️ |
Back then, I had to use |
I've released a new version with what should be a fix for the second issue described above (incorrect encoding when opening TOC files). |
Just tested it, the second issue no longer occurs. |
So, having secured access to a Windows machine, the value of instawow did not crash in the Command Prompt. |
|
Did you install Python from Cygwin or using the installer from python.org? I've asked on #cygwin and they were unable to reproduce this issue using Cygwin's version of Python and suggested that the official version of Python might be doing 'something wack like looking at your Windows locale settings to determine the ioencoding'. |
Yeah, that was it. I had both native Python and the one from Cygwin. Both of them were in Sorry for wasting your time. |
No worries, happy we've been able to resolve this. |
UnicodeEncodeError
exception.Appending
.encode('utf8').decode(sys.stdout.encoding)
to them seems to fix the issue but it looks rather hack-ish to me although I am not really fluent in Python. Using just one of those functions did not work.instawow list preexisting
throws anUnicodeDecodeError
exception:This is the file that causes the mentioned exception:
The text was updated successfully, but these errors were encountered: