bugGNU nano - Bugs: bug #58714, typing an invalid verbatim Unicode...

 
 

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

bug #58714: typing an invalid verbatim Unicode gives wrong feedback

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 06 Jul 2020 02:02:45 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Mon 06 Jul 2020 03:02:54 PM UTC, comment #2: 

Fixed in git, commit 5899181a.

Benno Schulenberg <bens>
Group administrator
Mon 06 Jul 2020 02:47:17 PM UTC, comment #1: 

Version 4.8 and before would not mark the buffer as modified when an invalid Unicode code was entered.  The offending commit is b3faf353: "inject the entire burst of bytes at once into the edit buffer".

Benno Schulenberg <bens>
Group administrator
Mon 06 Jul 2020 02:02:45 PM UTC, original submission:  

To reproduce, run 'src/nano +4 THANKS'.
Then type: M-V 00FFFF
See that mothing is entered into the buffer but that nevertheless it says "Modified" in the top right corner.  Type ^S and do 'git diff'.  See that the file really has not changed.  So the "Modified" was simply wrong.

Expected behavior: when the user enters and invalid Unicode code, nano should report it as such and refrain from inserting zero bytes into the buffer (and thus marking it as modified).

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 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-07-30 bens Open/ClosedOpen Closed
    2020-07-06 bens StatusIn Progress Fixed
    2020-07-06 bens StatusNone In Progress
        Summarytyping a wrong verbatim Unicode gives wrong feedback typing an invalid verbatim Unicode gives wrong feedback

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code