GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Emoji entered at prompt causes crash · Issue #1018 · bpython/bpython

Emoji entered at prompt causes crash #1018

New issue
Copy link
New issue
Copy link
Open
Open
Emoji entered at prompt causes crash#1018
Copy link
Labels
moreinfoMore information required from the submitterMore information required from the submitter

Description

@jimratliff
jimratliff
opened on May 24, 2024
Issue body actions

When running bpython, I tried to enter the following

message = "✅"

This character is: ✅
check mark symbol
Unicode: U+2705, UTF-8: E2 9C 85

But as soon as I entered the emoji itself (without the closing quote or return): I fot:

>>> message = "✅
Traceback (most recent call last):
  File "<REDACTED_PATH>/venv/bin/bpython", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "<REDACTED_PATH>/venv/lib/python3.11/site-packages/bpython/curtsies.py", line 248, in main
    repl.mainloop(True, paste)
  File "<REDACTED_PATH>/venv/lib/python3.11/site-packages/bpython/curtsies.py", line 181, in mainloop
    self.process_event_and_paint(e)
  File "<REDACTED_PATH>/venv/lib/python3.11/site-packages/bpython/curtsies.py", line 151, in process_event_and_paint
    array, cursor_pos = self.paint()
                        ^^^^^^^^^^^^
  File "<REDACTED_PATH>/venv/lib/python3.11/site-packages/bpython/curtsiesfrontend/repl.py", line 1762, in paint
    assert cursor_row >= 0 and cursor_column >= 0, (
                               ^^^^^^^^^^^^^^^^^^
AssertionError: (-1, 153, '>>> message = "✅', 'message = "✅', 12)

In contrast, no problem occurs when I enter the same text into the standard python interpreter.

Activity

  1. sebastinas
    added
    moreinfoMore information required from the submitterMore information required from the submitter
    on Jun 1, 2024
  2. sebastinas commented on Jun 1, 2024

    @sebastinas
    sebastinas
    on Jun 1, 2024
    Contributor
    More actions

    I cannot reproduce the issue. Are all your dependencies up to date?

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

    moreinfoMore information required from the submitterMore information required from the submitter

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.