[SERVER-14741] linenoise does not erase characters at end of line when backspacing over multi-byte characters in Windows Created: 31/Jul/14  Updated: 10/May/22

Status: Backlog
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Benety Goh Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Unresolved Votes: 0
Labels: move-sa, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image.png    
Issue Links:
Related
related to SERVER-14931 linenoise incorrectly duplicates line... Closed
is related to SERVER-6086 Unicode/UTF-8 in the shell needs to h... Closed
Operating System: ALL
Participants:

 Description   

SERVER-6086 fixed the issue with moving the cursor over multi-byte characters but exposed a flaw in the Windows redrawing code as described below:

------

Comments in SERVER-6086:

The cursor navigation works now. When I move the cursor under the chinese characters, the entire character is underlined(as opposed to be half). And press the arrow key once does move one char over.
Looking at the screenshot(see attachment image.png), you can notice there is some cosmetic issue. I tried to hit backspace 3 times when the cursor is at the last double quote mark. 3 chinese characters were deleted as expected, however, there are some extra curly brackets being shown in the end. If you hit enter, the statement would just work fine so it's just cosmetic.



 Comments   
Comment by Steven Vannelli [ 10/May/22 ]

Moving this ticket to the Backlog and removing the "Backlog" fixVersion as per our latest policy for using fixVersions.

Generated at Thu Feb 08 03:35:50 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.