bobf is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

bobf / bpython http://bpython-interpreter.org/

Fancy curses interface to the Python interpreter

Clone this repository (size: 838.8 KB): HTTPS / SSH
hg clone https://bitbucket.org/bobf/bpython
hg clone ssh://hg@bitbucket.org/bobf/bpython

Issues

#200 cli issues with spanish translation

Reported by Sebastian Ramacher

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)
Status: resolved Responsible: nobody Type: bug Priority: major
Milestone: none Component: none Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

  1. #1 Sebastian Ramacher

    written

    • Changed status from new to resolved.

    Fixed in b49882bf57a1.

Add comment / attachment

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?