bugGNU nano - Bugs: bug #65832, a string bind chokes when the...


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

bug #65832: a string bind chokes when the first character is not ASCII

Submitter:  Benno Schulenberg <bens>
Submitted:  Mon 03 Jun 2024 01:15:48 PM UTC
Severity:  3 - Normal Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Sat 13 Jul 2024 08:53:24 AM UTC, comment #3: 

The fix was released in nano-8.1.  Thanks again for reporting.

Benno Schulenberg <bens>
Group administrator
Mon 03 Jun 2024 01:45:55 PM UTC, comment #2: 

Fixed in git, commit dcbbbf81, by ensuring the first return value uses 'unsigned char', like for the rest of the string.

Benno Schulenberg <bens>
Group administrator
Mon 03 Jun 2024 01:23:07 PM UTC, comment #1: 

Bug exists since commit 51c9f727: "let the handler of string binds return a byte whenever possible".

Problem was found while testing {enact}.

Benno Schulenberg <bens>
Group administrator
Mon 03 Jun 2024 01:15:48 PM UTC, original submission:  

To reproduce, run:

echo 'bind M-P "ééé" main' >failrc

src/nano --rc=failrc -x

Then type: M-P
See that nano reports "[ Unbound key: ^^C ]" and nothing gets inserted.  (Ctrl+Ctrl+C?  That is weird.)

Now add an "e" at the start of the string bind and run the same nano command again and press M-P.  Now the string "eééé" gets inserted just fine.

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
    2024-07-13 bens Open/ClosedOpen Closed
    2024-06-03 bens StatusIn progress Fixed
    2024-06-03 bens StatusNone In progress

    Back to the top

    Powered by Savane 3.13-b921.
    Corresponding source code