Skip to content
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

Cursor behavior with Unicode in command line interactive input #6163

Open
p6rt opened this issue Mar 23, 2017 · 1 comment
Open

Cursor behavior with Unicode in command line interactive input #6163

p6rt opened this issue Mar 23, 2017 · 1 comment

Comments

@p6rt
Copy link

p6rt commented Mar 23, 2017

Migrated from rt.perl.org#131048 (status was 'new')

Searchable as RT131048$

@p6rt
Copy link
Author

p6rt commented Mar 23, 2017

From telebody@gmail.com

When Unicode is entered In the perl6 interactive shell on the command line in Mac OS X, when you backspace over a previously inputted line the cursor position is displayed incorrectly and backspacing only partially destroys the unicode character.

$ perl6

<a b c> ∩ <b c d>
set(c, b)
(press the up arrow key to copy the line)
—> the cursor appears some spaces to the right of the end of the line.
(Press the delete key 9 times)
—> the second byte of the unicode intersect character only is deleted, leaving a question mark in a diamond character (unicode name​: REPLACEMENT CHARACTER)​: �
(Press enter key)
Malformed termination of UTF-8 string
  in sub nativecast at /Applications/Rakudo/share/perl6/sources/51E302443A2C8FF185ABC10CA1E5520EFEE885A1 (NativeCall​::Types) line 5
  in method deref at /Applications/Rakudo/share/perl6/sources/51E302443A2C8FF185ABC10CA1E5520EFEE885A1 (NativeCall​::Types) line 58
  in sub linenoise at /Applications/Rakudo/share/perl6/site/sources/0BDF8C54D33921FEA066491D8D13C96A7CB144B9 (Linenoise) line 86
  in any interactive at src/Perl6/Compiler.nqp line 62

I enter this Unicode character by using the Japanese input method, but you can use the Mac OS X unicode/emoji viewer. I used the N-ARY INTERSECT character above but the fat INTERSECT character does the same thing.

This problem does not occur when entering a program in this shell using perl6 -e ‘’, nor when I run vi in this shell and edit in vi.
Environment​: Mac OS X 10.12.3 Sierra, Rakudo 2017.1 dmg, iTerm Build 3.1.beta.1, bash-3.2 with export LC_ALL=en_US.UTF-8

Regards,

Matt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant