-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Middle-dot 'U+00b7' from a ES keyboard layout crashes Julia REPL #25098
Comments
I cannot reproduce this even if switch to non-US keyboard layouts, but the problem makes sense and has to do with the fact that reading a character from a terminal can potentially need to take a byte and put it back, the implementation of which seems to be broken. However, that should only happen if the terminal is producing invalid UTF-8 data, which may be why I can't reproduce it – perhaps my terminal is sending valid UTF-8, whereas your terminal is not? What OS and terminal application are you using? If it's sending these characters through as Latin-1 instead of UTF-8 then we could potentially see this behavior. Of course, the REPL still shouldn't crash, so there is a bug nevertheless. |
Nevermind, I've managed to reproduce this! |
Thanks. I've not access to my laptop during the weekend.
…On Sun, Dec 17, 2017, 22:23 Stefan Karpinski ***@***.***> wrote:
Nevermind, I've managed to reproduce this!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#25098 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFa33Ok7Kok53YIlGcxCyyXtdhSpMTbhks5tBYZdgaJpZM4RDQkR>
.
|
I've got a PR that fixes this issue for me. If @i-apellaniz or @KlausC could check that would be much appreciated! |
I checked the PR and I works now! Thanks! BTW, I was using UTF-8 encoding, and my keyboard layout is ES. Hitting SHIFT-3 sends U+00b7. On the other hand I think it is worth to make something like |
I also saw this with option-shift-9 on macOS. |
I found by accident this issue, in master Julia. Whenever I try to type "·" (U+00b7) in the REPL, Julia crashes. This doesn't happen in v0.6.2. On the other hand, I can type
\cdotp [TAB]
to avoid the issue.Note that the middot is typed as SHIFT+3 in the spanish keyboard layout, and I don't have direct access to the other middot (U+22c5) apart from typing
\cdot [TAB]
. I would prefer to make them equivalent for the whole Julia, since it is easy to type in my case.Here it is the version information
the error message
and the stacktrace
Thanks!
Interpunct, interpoint, middle dot, middot, centered dot, centred dot
The text was updated successfully, but these errors were encountered: