Public bug reported:
bpython crashes when running it if the system language is set to Spanish (even
when run with `LANG=C bpython`).
Xubuntu 12.04 64b, Spanish
Traceback (most recent call last):
File "/usr/bin/bpython", line 9, in <module>
load_entry_point('bpython==0.10.1', 'console_scripts', 'bpython')()
File "/usr/lib/python2.7/dist-packages/bpython/cli.py", line 1756, in main
banner=banner)
File "/usr/lib/python2.7/dist-packages/bpython/cli.py", line 1658, in
curses_wrapper
return func(stdscr, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/bpython/cli.py", line 1701, in
main_curses
main_win, statusbar = init_wins(scr, config)
File "/usr/lib/python2.7/dist-packages/bpython/cli.py", line 1549, in
init_wins
get_colpair(config, 'main'))
File "/usr/lib/python2.7/dist-packages/bpython/cli.py", line 1416, in __init__
self.settext(s, c)
File "/usr/lib/python2.7/dist-packages/bpython/cli.py", line 1515, 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)
Character u'\xf3' is the "ó" in "Mostra el código fuente". This bug is
fixed in https://bitbucket.org/bobf/bpython/changeset/b49882bf57a1 and
applying that patch actually solves the problem (although the problem
re-appears when running `LANG=C bpython` because then
getpreferredencoding() returns "ascii").
** Affects: bpython (Ubuntu)
Importance: Undecided
Status: New
** Tags: bpython
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1046922
Title:
bpython crashes with UnicodeEncodeError with Spanish L10n
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bpython/+bug/1046922/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs