Closed
Description
I'm unable to use bpython.cli with the spanish translation. bpython.urwid works fine. Here is the traceback:
$ LANG=es_ES.UTF-8 python -m bpython.cli
Traceback (most recent call last):
File "/usr/lib/python2.6/runpy.py", line 122, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/home/sebastian/development/bpython/bpython/cli.py", line 1858, in <module>
main()
File "bpython/cli.py", line 1844, in main
banner=banner)
File "bpython/cli.py", line 1743, in curses_wrapper
return func(stdscr, *args, **kwargs)
File "bpython/cli.py", line 1787, in main_curses
main_win, statusbar = init_wins(scr, config)
File "bpython/cli.py", line 1610, in init_wins
get_colpair(config, 'main'))
File "bpython/cli.py", line 1477, in __init__
self.settext(s, c)
File "bpython/cli.py", line 1576, in settext
self.win.addstr(s, self.c)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf3' in position 71: ordinal not in range(128)
- Bitbucket: https://bitbucket.org/bobf/bpython/issue/200
- Originally Reported By: Sebastian Ramacher
- Originally Created At: 2011-09-21T15:22:11.196