bugGNU nano - Bugs: bug #59071, with Slang, returning from...

 
 

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

bug #59071: with Slang, returning from suspension enters an invalid byte

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 06 Sep 2020 01:58:53 PM UTC
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Mon 07 Sep 2020 03:27:54 PM UTC, comment #5: 

Fixed in git, commit cf4901da, by stuffing 0xFF into the input stream instead of 0x91 -- 0xFF gets ignored when using Slang because Slang sometimes produces it itself (instead of the intended -1).

Benno Schulenberg <bens>
Project Administrator
Mon 07 Sep 2020 10:20:29 AM UTC, comment #4: 

The Ñ bug existed since version 2.8.6.  Version 2.8.5 was still okay.  That was for a long time.  More than three years, and no one noticed it (or at least: no one reported it).  :|

Benno Schulenberg <bens>
Project Administrator
Mon 07 Sep 2020 10:04:53 AM UTC, comment #3: 

(It still worked fine in nano-5.0, but there it is impossible to type Ñ (an uppercase ñ) into the buffer (or any other character that has 0x91 in its UTF-8 code sequence) -- nothing is entered, but upon the next valid character an invalid byte (0xC3) is entered.  Don't know since when that bug exists.)

Benno Schulenberg <bens>
Project Administrator
Sun 06 Sep 2020 02:08:55 PM UTC, comment #2: 

The offending commit is cc6d1d59: "optimize for byte-range characters, and shorten some comments".

Benno Schulenberg <bens>
Project Administrator
Sun 06 Sep 2020 02:04:02 PM UTC, comment #1: 

Bug exists since version 5.1.  Version 5.0 still worked fine.

Benno Schulenberg <bens>
Project Administrator
Sun 06 Sep 2020 01:58:53 PM UTC, original submission:  

To reproduce, run './configure -C --enable-tiny --with-slang' followed by 'make'.

Then run 'src/nano --sus' and type: ^Z, followed by: fg <Enter>.

See that an invalid byte (�) has been entered into the buffer.

Benno Schulenberg <bens>
Project 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-10-08 bens Open/ClosedOpen Closed
    2020-09-07 bens StatusNone Fixed
    2020-09-06 bens Summarywhen built with Slang, returning from suspension enters an invalid byte with Slang, returning from suspension enters an invalid byte

    Back to the top


    Powered by Savane 3.9