bugGNU nano - Bugs: bug #30397, Nano's whitespace handling throws...

 
 
Show feedback again

bug #30397: Nano's whitespace handling throws errors when two UTF-8 characters are used in a non-utf8 terminal.

Submitted by:  Dan Mahoney <gushi>
Submitted on:  Fri 09 Jul 2010 03:20:11 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: OpenRelease: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Fri 09 Jul 2010 03:20:11 AM UTC, original submission:

I have a UTF-8 terminal, and have put in my global nanorc:

set whitespace "»·", which were pasted in from doc samples.

Now, if you're on UTF8, you will see, essentially:

">>" and "." (the . would be at mid-line height). Both of these would be a single character wide.

If, however, you're on some OTHER terminal type, you see this:

http://www.gushi.org/nano_bug/nano_stuff.png

(as reported by a user)

However, nano throws up a warning that it can't parse that line because at that point it's 4 chars wide.

I might suggest that the "set whitespace" warning needs to be modified such that it is encoding matched.

set whitespace UTF-8 "xy"
set whitespace "ab"

Dan Mahoney <gushi>

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gushi (Submitted the item)
  • -unavailable- added by gushi (Original Reporter)
  •  

    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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 09 Jul 2010 03:20:11 AM UTCgushiCarbon-Copy-=>Added -unavailable-
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup