bugGNU nano - Bugs: bug #45579, nano finds both Unicode and...

 
 

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

bug #45579: nano finds both Unicode and ISO-8859-1 characters

Submitter:  Benno Schulenberg <bens>
Submitted:  Sun 19 Jul 2015 07:36:24 PM UTC
   
 
Severity:  2 - Minor Status:  Fixed
Assigned to:  bens Open/Closed:  Closed

Thu 23 Jul 2015 08:08:15 PM UTC, comment #2: 

The patch (extended for a backward search) went into SVN, r5316.

Benno Schulenberg <bens>
Group administrator
Sun 19 Jul 2015 07:37:59 PM UTC, comment #1: 

Attached patch forces nano to match only valid UTF-8 bytes.

(file #34465)

Benno Schulenberg <bens>
Group administrator
Sun 19 Jul 2015 07:36:24 PM UTC, original submission:  

(Bug was originally reported by Mike Frysinger in https://lists.gnu.org/archive/html/nano-devel/2009-02/msg00018.html.)

When, in a Unicode locale, a file contains not only UTF-8 characters but also characters encoded in ISO-8859-1, a search for some character will find both the UTF-8 and the invalid ISO-8859-1 ones.

To reproduce, do:

echo "0000000: 2020 c3ba 2020 c3bc 2020 fa20 20fc" | xxd -r >foo

Then run 'nano foo' in a Unicode locale and search for ú or ü, and see how nano finds each of them twice.

Benno Schulenberg <bens>
Group administrator

 

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

Attached Files
file #34465:  only-valid-sequences.patch added by bens (483B - text/x-diff)

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2015-12-07 bens Open/ClosedOpen Closed
    2015-07-23 bens Severity3 - Normal 2 - Minor
        StatusNone Fixed
        Assigned toNone bens
    2015-07-19 bens Attached File- Added only-valid-sequences.patch, #34465
        Summarynano finds both unicode and ISO-8859-1 characters nano finds both Unicode and ISO-8859-1 characters

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code