-
-
Notifications
You must be signed in to change notification settings - Fork 246
Unicode errors in status bar #505
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
This could be fixed without reproducing Julian's original problem by making the code above work. |
Is this as simple as converting If so, I can submit a PR. I'm new to the codebase, so I'm not sure if it's a more complex issue. |
While it would be nice to know what was causing this (how was Unfortunately we've lost the original problem because I didn't paste it in here :( so we can't try to reproduce it. I'm reticent about making a change that purports to change an issue we can't reproduce. You might try putting an assertion there that the input is unicode and playing around with it to see if you can trigger it? |
This might have been the original problem:
It's finicky to reproduce, but we can see the problem is getting a blank line that isn't unicode. |
It looks like msg is at some point an empty bytestring instead of an empty unicode string |
@Julian found unicode errors on master: https://bpaste.net/show/df5269cf4f95
It seems that passing a bytestring to
paint_statusbar
ends poorly, but not sure how this is occurring. It seems to have happened at startup in the above example.The text was updated successfully, but these errors were encountered: