bugGNU nano - Bugs: bug #42175, replacing goes wrong when cursor...

 
 

bug #42175: replacing goes wrong when cursor sits on multibyte character to be replaced

Submitted by:  Benno Schulenberg <bens>
Submitted on:  Wed 23 Apr 2014 08:35:35 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Benno Schulenberg <bens>
Open/Closed: ClosedRelease: None

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

Sun 22 Mar 2015 11:43:42 AM UTC, comment #1:

Fixed in SVN, r5148.

Benno Schulenberg <bens>
Project MemberIn charge of this item.
Wed 23 Apr 2014 08:35:35 AM UTC, original submission:

Type or paste «whoops» into an empty buffer, guillemets included (use a UTF-8 locale). Then put the cursor on the last guillemet and type:

M-R » Enter " Enter Y

And see how the right-pointing guillemet has turned into a left-pointing one plus a double quote. Now put the cursor on the first guillemet and type:

M-R « Enter " Enter Y

Notice how you are not asked twice whether to replace the «, so the second « really was a figment. See how both guillemets now have changed into the misencoding marker �, and the w into a double quote.

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

 

(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 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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 23 Mar 2015 06:25:35 PM UTCbensOpen/ClosedOpen=>Closed
    Sun 22 Mar 2015 11:43:42 AM UTCbensStatusNone=>Fixed
      Assigned toNone=>bens
    Fri 20 Mar 2015 08:11:50 PM UTCbensSummaryReplacing goes wrong when cursor sits on multibyte character to be replaced=>replacing goes wrong when cursor sits on multibyte character to be replaced

    Back to the top


    Powered by Savane 3.1-cleanup