bugGNU nano - Bugs: bug #48711, typing characters while holding...

 
 

bug #48711: typing characters while holding down both Alt keys enters invalid bytes

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Sat 06 Aug 2016 12:52:32 PM UTC  
 
Severity: 3 - NormalStatus: Fixed
Assigned to: Benno Schulenberg <bens>Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 07 Aug 2016 04:21:13 PM UTC, comment #1:

Fixed in git, 8edb096.

But I don't like the fix. Pressing <Esc> followed by AltGr+key, should ignore the <Esc> and just enter the relevant character. But pressing AltGr+key while holding down Alt, should say something like "Invalid keystroke". But that would require parsing the input stream to eat up a single multibyte character. Or at least it will require discarding continuation bytes (0x80 - 0xBF). But that's rather ugly -- see attached patch.

(file #38138)

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.
Sat 06 Aug 2016 12:52:32 PM UTC, original submission:

To reproduce, use a UTF-8 locale and a keyboard layout that produces accented letters (or other multibyte characters) when holding down the AltGr key (the right Alt key). Run 'nano --ignore', hold down both Alt keys and type all letters of the alphabet. Each of the keystrokes beeps and enters an invalid byte into the buffer, except (at least here) B, N, and V.

Bug exists since nano-2.6.2.

The offending commit is 033376a (which intended to fix bug #48395).

Benno Schulenberg <bens>
Project AdministratorIn charge of this item.

 

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

Attach File(s):
   
   
Comment:
   

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 11 Aug 2016 10:54:13 AM UTCbensOpen/ClosedOpen=>Closed
    Sun 07 Aug 2016 04:21:13 PM UTCbensAttached File-=>Added 0001-input-report-multibyte-characters-together-with-Meta.patch, #38138
      StatusNone=>Fixed

    Back to the top


    Powered by Savane 3.1-cleanup1