Skip to content

bitmessage --curses crashes over UTF / Unicode #1345

@dimyme

Description

@dimyme
Contributor

the curses mode could use a lil fixing ... then it works great. happened after "reply-to-BM"

I ran v.0.6 tip



2018-09-18  15:29:45,416 - CRITICAL - Unhandled exception Traceback (most recent call last):   File "bitmessagemain.py", line 507, in <module>     main()

  File "bitmessagemain.py", line 503, in main    mainprogram.start()

  File "bitmessagemain.py", line 398, in start    bitmessagecurses.runwrapper()

  File "/z/src/bitmessagecurses/__init__.py", line 1004, in runwrapper    curses.wrapper(run)

  File "/usr/lib/python2.7/curses/wrapper.py", line 43, in wrapper    return func(stdscr, *args, **kwds)

  File "/z/src/bitmessagecurses/__init__.py", line 1049, in run    handlech(stdscr.getch(), stdscr)

  File "/z/src/bitmessagecurses/__init__.py", line 334, in handlech    sendMessage(fromaddr, toaddr, ischan, subject, body, True)

  File "/z/src/bitmessagecurses/__init__.py", line 735, in sendMessage     r, t = d.inputbox("Message body", 10, 80, init=body)

  File "/usr/lib/python2.7/site-packages/dialog.py", line 2788, in inputbox     kwargs, strip_xdialog_newline=True, raw_help=True)

  File "/usr/lib/python2.7/site-packages/dialog.py", line 1748, in _widget_with_string_output
    code, output = self._perform(args, **kwargs)

  File "/usr/lib/python2.7/site-packages/dialog.py", line 1540, in _perform     **kwargs)

  File "/usr/lib/python2.7/site-packages/dialog.py", line 1301, in _call_program     cmdargs = self.dash_escape_nf(cmdargs)

  File "/usr/lib/python2.7/site-packages/dialog.py", line 1095, in dash_escape_nf     return _dash_escape_nf(args)

  File "/usr/lib/python2.7/site-packages/dialog.py", line 323, in _dash_escape_nf     l = _dash_escape(args[1:])

  File "/usr/lib/python2.7/site-packages/dialog.py", line 306, in _dash_escape     if arg.startswith("--"):

UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 134: ordinal not in range(128)

I hate markdown btw

Activity

dimyme

dimyme commented on Sep 19, 2018

@dimyme
Author
dimyme

dimyme commented on Sep 20, 2018

@dimyme
ContributorAuthor

but send BM does not yet work, but easy to fix I guess

added
bugSomething isn't working as it's supposed to
on Aug 27, 2020
added this to the v1.0.0 milestone on Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working as it's supposed to

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @PeterSurda@dimyme

      Issue actions

        bitmessage --curses crashes over UTF / Unicode · Issue #1345 · Bitmessage/PyBitmessage