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  
 
Severity:  3 - Normal Status:  Fixed
Assigned to:  Benno Schulenberg <bens> Open/Closed:  Closed

Add a New Comment(Rich 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 AdministratorIn 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 AdministratorIn charge of this item.

 

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

Attach Files:
   
   
Comment:
   

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

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-23 bens Open/ClosedOpen => Closed
    2015-03-22 bens StatusNone => Fixed
        Assigned toNone => bens
    2015-03-20 bens SummaryReplacing 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.3