GNU nano - Bugs: bug #60262, invalid Unicodes above U+10FFFF...
You are not allowed to post comments on this tracker with your current authentication level.
bug #60262: invalid Unicodes above U+10FFFF are incorrectly presented
Submitter: | Benno Schulenberg <bens> | ||
Submitted: | Sat 20 Mar 2021 10:42:48 AM UTC | ||
Severity: | 3 - Normal | Status: | Fixed |
Assigned to: | bens | Open/Closed: | Closed |
Fri 26 Mar 2021 10:30:52 AM UTC, comment #2: |
Benno Schulenberg <bens> |
Tue 23 Mar 2021 11:19:39 AM UTC, comment #1: The misdisplaying is caused by a bug in the mbtowc() and mblen() functions of glibc, as Bruno Haible pointed out in https://lists.gnu.org/archive/html/bug-gnulib/2021-03/msg00105.html:
|
Benno Schulenberg <bens> |
Sat 20 Mar 2021 10:42:48 AM UTC, original submission:
To reproduce, run:
See that "��" is shown. Put the cursor on the first � and see that the minibar says U+16AAAA. This is not a valid Unicode, so nano should not use the U+ presentation format. Put the cursor on the second � and see that 0xAA is shown. This is correct.
See that "�" is shown. Put the cursor on the � and see that the minibar says U+110000. Also this is an invalid Unicode.
|
Benno Schulenberg <bens> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
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 6 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2021-04-30 | bens | Open/Closed | Open | Closed | |
2021-03-26 | bens | Status | None | Fixed | |
Summary | invalid Unicodes (above U+10FFFF) are incorrectly presented | invalid Unicodes above U+10FFFF are incorrectly presented | |||
2021-03-23 | bens | Summary | invalid Unicodes( above U+10FFFF) are incorrectly presented | invalid Unicodes (above U+10FFFF) are incorrectly presented | |
2021-03-23 | bens | Summary | Unicodes above U+10FFFF (which are invalid) are incorrectly presented | invalid Unicodes( above U+10FFFF) are incorrectly presented | |
2021-03-23 | bens | Assigned to | None | bens |
Powered by Savane 3.13-d3ae.
Corresponding source code
Fixed in git, commit 92977019, by extra checks in char_length() and an mbtowide() wrapper for mbtowc() to detect codes beyond U+10FFFF.