Title: Emoji entered at prompt causes crash · Issue #1018 · bpython/bpython · GitHub
Open Graph Title: Emoji entered at prompt causes crash · Issue #1018 · bpython/bpython
X Title: Emoji entered at prompt causes crash · Issue #1018 · bpython/bpython
Description: 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: >>> messag...
Open Graph Description: 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 clo...
X Description: 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 (witho...
Opengraph URL: https://github.com/bpython/bpython/issues/1018
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Emoji entered at prompt causes crash","articleBody":"When running bpython, I tried to enter the following\r\n\r\nmessage = \"✅\"\r\n\r\nThis character is: ✅\r\ncheck mark symbol\r\nUnicode: U+2705, UTF-8: E2 9C 85\r\n\r\nBut as soon as I entered the emoji itself (without the closing quote or return): I fot:\r\n\r\n```\r\n\u003e\u003e\u003e message = \"✅\r\nTraceback (most recent call last):\r\n File \"\u003cREDACTED_PATH\u003e/venv/bin/bpython\", line 8, in \u003cmodule\u003e\r\n sys.exit(main())\r\n ^^^^^^\r\n File \"\u003cREDACTED_PATH\u003e/venv/lib/python3.11/site-packages/bpython/curtsies.py\", line 248, in main\r\n repl.mainloop(True, paste)\r\n File \"\u003cREDACTED_PATH\u003e/venv/lib/python3.11/site-packages/bpython/curtsies.py\", line 181, in mainloop\r\n self.process_event_and_paint(e)\r\n File \"\u003cREDACTED_PATH\u003e/venv/lib/python3.11/site-packages/bpython/curtsies.py\", line 151, in process_event_and_paint\r\n array, cursor_pos = self.paint()\r\n ^^^^^^^^^^^^\r\n File \"\u003cREDACTED_PATH\u003e/venv/lib/python3.11/site-packages/bpython/curtsiesfrontend/repl.py\", line 1762, in paint\r\n assert cursor_row \u003e= 0 and cursor_column \u003e= 0, (\r\n ^^^^^^^^^^^^^^^^^^\r\nAssertionError: (-1, 153, '\u003e\u003e\u003e message = \"✅', 'message = \"✅', 12)\r\n```\r\n\r\nIn contrast, no problem occurs when I enter the same text into the standard python interpreter.","author":{"url":"https://github.com/jimratliff","@type":"Person","name":"jimratliff"},"datePublished":"2024-05-24T23:19:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/1018/bpython/issues/1018"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:eeef9487-b77a-8b9a-bb35-8ae521803800 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E6C8:1C0402:C50929:117D3FB:69676FB8 |
| html-safe-nonce | 196888e8095a405510473d007ee12992c92ef002ca8b6298feaf7a7d361c937c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNkM4OjFDMDQwMjpDNTA5Mjk6MTE3RDNGQjo2OTY3NkZCOCIsInZpc2l0b3JfaWQiOiI1NjQ3MzcyMjIyMDQ1MDU2OTUyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 6ef0f713a5a368b4e200f10346c81d49e8e3924d0755d205393113f3fd95138b |
| hovercard-subject-tag | issue:2316392109 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bpython/bpython/1018/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e4e831f92116d0525836f0c2c2214b80523f93aecaf482eccea5cac5d6c2703d/bpython/bpython/issues/1018 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e4e831f92116d0525836f0c2c2214b80523f93aecaf482eccea5cac5d6c2703d/bpython/bpython/issues/1018 |
| og:image:alt | 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 clo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jimratliff |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1a6a4ac66aaa8be0077b72a69fd56fb51cd11215a1e31f0365079e012987234a |
| turbo-cache-control | no-preview |
| go-import | github.com/bpython/bpython git https://github.com/bpython/bpython.git |
| octolytics-dimension-user_id | 8071396 |
| octolytics-dimension-user_login | bpython |
| octolytics-dimension-repository_id | 21508865 |
| octolytics-dimension-repository_nwo | bpython/bpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 21508865 |
| octolytics-dimension-repository_network_root_nwo | bpython/bpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 045909cd564d790cacd96dcb8722039dff679d63 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width