Skip to content

fix encoding issues in urwid and curses #702

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

Merged
merged 2 commits into from
Nov 6, 2017

Conversation

thomasballinger
Copy link
Member

fixes #701

Make it clear with comments that self.stdout_hist is bytes in Python 2, unicode in Python 3. Blech, would be nice to fix that to be unicode everywhere.

To debug I made self.stdout_hist a type-checking property, maybe this is worth doing for real? Also maybe static typechecking would be nice? But this PR just fixes this bug.

@glyph
Copy link

glyph commented Aug 19, 2017

"bytes on python 2, unicode in python 3" is more easily referred to as "native str" :)

@sebastinas
Copy link
Contributor

Would be good to have test case so that we don't break that again in the future..

@sebastinas sebastinas merged commit 1991216 into bpython:master Nov 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bpython-urwid on python 2 can't format tracebacks that contain non-ASCII characters
3 participants