Title: UTF-8 support - repl/editor panicking · Issue #161 · endbasic/endbasic · GitHub
Open Graph Title: UTF-8 support - repl/editor panicking · Issue #161 · endbasic/endbasic
X Title: UTF-8 support - repl/editor panicking · Issue #161 · endbasic/endbasic
Description: Hi, there are a couple of issue with current utf-8 support eg. When in repl or in editor, I type: print "é" When I type the last double quote, endbasic panics: philou@siderant ~ $ RUST_BACKTRACE=1 endbasic --console=graphics 101 [11:19:5...
Open Graph Description: Hi, there are a couple of issue with current utf-8 support eg. When in repl or in editor, I type: print "é" When I type the last double quote, endbasic panics: philou@siderant ~ $ RUST_BACKTRACE=1 ...
X Description: Hi, there are a couple of issue with current utf-8 support eg. When in repl or in editor, I type: print "é" When I type the last double quote, endbasic panics: philou@siderant ~ $ RUST_BA...
Opengraph URL: https://github.com/endbasic/endbasic/issues/161
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"UTF-8 support - repl/editor panicking","articleBody":"Hi, there are a couple of issue with current utf-8 support eg. When in repl or in editor, I type:\r\n```\r\nprint \"é\"\r\n```\r\n\r\nWhen I type the last double quote, endbasic panics:\r\n```\r\nphilou@siderant ~ $ RUST_BACKTRACE=1 endbasic --console=graphics 101 [11:19:57]\r\nthread 'main' panicked at 'byte index 8 is not a char boundary; it is inside 'é' (bytes 7..9) of `print \"é`', /Users/philou/.cargo/registry/src/github.com-1ecc6299db9ec823/endbasic-std-0.8.1/src/console/readline.rs:179:39\r\nstack backtrace:\r\n 0: rust_begin_unwind\r\n at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/std/src/panicking.rs:498:5\r\n 1: core::panicking::panic_fmt\r\n at /rustc/9d1b2106e23b1abd32fce1f17267604a5102f57a/library/core/src/panicking.rs:116:14\r\n 2: core::str::slice_error_fail\r\n 3: \u003ccore::future::from_generator::GenFuture\u003cT\u003e as core::future::future::Future\u003e::poll\r\n 4: \u003ccore::future::from_generator::GenFuture\u003cT\u003e as core::future::future::Future\u003e::poll\r\n 5: tokio::park::thread::CachedParkThread::block_on\r\n 6: tokio::runtime::thread_pool::ThreadPool::block_on\r\n 7: tokio::runtime::Runtime::block_on\r\n 8: endbasic::main\r\nnote: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.\r\n```\r\n\r\nThis also happens if I type `é` and then backspace. With a similar error:\r\n```\r\nthread 'main' panicked at 'byte index 1 is not a char boundary; it is inside 'é' (bytes 0..2) of `é`', /Users/philou/.cargo/registry/src/github.com-1ecc6299db9ec823/endbasic-std-0.8.1/src/console/readline.rs:144:39\r\n```\r\n\r\n\r\n","author":{"url":"https://github.com/zenria","@type":"Person","name":"zenria"},"datePublished":"2022-04-12T09:42:25.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/161/endbasic/issues/161"}
| 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:0b312a5e-c975-d583-e94f-efcdef418974 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8D3C:3A4C6B:FE0351:1561CB6:6A62C090 |
| html-safe-nonce | 0b7d7c6e66c9e28a244055982c744237bf6426d7597f2af292694530c9496c91 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDNDOjNBNEM2QjpGRTAzNTE6MTU2MUNCNjo2QTYyQzA5MCIsInZpc2l0b3JfaWQiOiIxMzg4MTExNDA3MjU5NzYyODMyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d0b785627e890d30c472e37e6e8e6dfe5f928a1eda81e492fc9359e64e9c6a8f |
| hovercard-subject-tag | issue:1201540921 |
| 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/endbasic/endbasic/161/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6db0fdf4a83fd59006dab8357f2c4740f7cd1af23278599e8a4df2df2cd27a6d/endbasic/endbasic/issues/161 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6db0fdf4a83fd59006dab8357f2c4740f7cd1af23278599e8a4df2df2cd27a6d/endbasic/endbasic/issues/161 |
| og:image:alt | Hi, there are a couple of issue with current utf-8 support eg. When in repl or in editor, I type: print "é" When I type the last double quote, endbasic panics: philou@siderant ~ $ RUST_BACKTRACE=1 ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zenria |
| hostname | github.com |
| expected-hostname | github.com |
| None | df33b1b61ee7b9a0af988199bfc3503c9c1acafb1f1d40e1f140ea7c84f890dd |
| turbo-cache-control | no-preview |
| go-import | github.com/endbasic/endbasic git https://github.com/endbasic/endbasic.git |
| octolytics-dimension-user_id | 75130732 |
| octolytics-dimension-user_login | endbasic |
| octolytics-dimension-repository_id | 253313291 |
| octolytics-dimension-repository_nwo | endbasic/endbasic |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 253313291 |
| octolytics-dimension-repository_network_root_nwo | endbasic/endbasic |
| 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 | d41cd1bdb290013455c0ac430fa755621733f5eb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width