Skip to content

cli issues with spanish translation #200

Closed
@ikanobori

Description

@ikanobori

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions