bugGNU nano - Bugs: bug #58927, typing a Unicode character during...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #58927: typing a Unicode character during Unicode Input enters junk

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 10 Aug 2020 06:49:29 AM UTC
   
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Mon 10 Aug 2020 07:39:00 AM UTC, comment #1: 

Fixed in git, commit be203832, by ignoring any invalid keystroke during Unicode Input and by discarding any continuation bytes of a typed Unicode character.

Benno Schulenberg <bens>
Group administrator
Mon 10 Aug 2020 06:49:29 AM UTC, original submission:  

To reproduce, run 'src/nano --ignore',
then type: M-V 0987 é
Result: "Ã�" is entered into the buffer.  :|

The bug is old, it exists since at least version 2.0.6.

Bug was found by realizing that parse_verbatim_kbinput() always takes the end result of assemble_unicode() as a unicode code and never as a keycode (which it will be if a typed character is not a valid hexadecimal character).

Benno Schulenberg <bens>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bens (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-08-13 bens Open/ClosedOpen Closed
    2020-08-10 bens Summarytyping a Unicode character during Unicode code input enters junk typing a Unicode character during Unicode Input enters junk
    2020-08-10 bens StatusNone Fixed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code