Rename Symbol bug

Discussion about CodeLite development process and patches
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Rename Symbol bug

Post by frank_frl »

Hi Eran,

when I use the 'Rename Symbol' feature CL is selecting all symbols to change with an offset of -1. See attached image.
RenameBug.png
CL v4.0.5472 Windows7 64bit
Regards

Frank
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Rename Symbol bug

Post by eranif »

Hi Frank,
This is probably due to wrong file encoding detection when parsing the file.
Can you please prepare a sample workspace that reproduce this problem? (You will probably need to create file with some non-english characters)

My guess is that fader.h contains some non ASCII characters in the comments which cause this bug

Eran
Make sure you have read the HOW TO POST thread
frank_frl
CodeLite Expert
Posts: 176
Joined: Sun Aug 17, 2008 2:45 pm
Contact:

Re: Rename Symbol bug

Post by frank_frl »

eranif wrote:My guess is that fader.h contains some non ASCII characters in the comments which cause this bug
Your guess was 100% right! I had the German word 'Büro' , what means office in English, in the copyright comment. File encoding is set to UTF-8.
So just adding this word to a comment should be enough to reproduce it.

Frank
User avatar
eranif
CodeLite Plugin
Posts: 6373
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Rename Symbol bug

Post by eranif »

This should be fixed in latest trunk

There was an extra conversion in the way, removing it fixed the problem

Eran
Make sure you have read the HOW TO POST thread
Post Reply