Page 1 of 1

Search Problem

Posted: Thu Jun 04, 2009 2:53 pm
by bkankur
Dear Friends,

I am facing some issue with Search option. Please find the following attachments of the snapshot of the search results from Codelite latest version and HEW IDE.
1) Codelite_search_result.jpeg
2) HEW_search_result.jpeg

The snapshots shows the search result for word "ZG_CONFIG_CUSTOM_WIFIMGR" in both IDEs and the results are different. The Snapshot also shows the Search Dialog box and the options that are selected.

Kindly let me know if you have any solution and if one needs more information from myside.

Have a Good Day..

Best wishes to CodeLite Team & Users..

Thank you,
Ankur.

Re: Search Problem

Posted: Thu Jun 04, 2009 7:35 pm
by eranif
Hi,

Usually this means that there are some non plain ascii text in those files (e.g. german umlauts)

Is it possible to have those file for testing purposes? (TCPStackTop.c, ZGDriverAccessApp.h and ZGSocket.c) this will really help me figure this out.

Thanks a lot!

Eran

Re: Search Problem

Posted: Fri Jun 05, 2009 1:47 pm
by bkankur
Dear Eran,

Thanks for your response.

Kindly find the attached Zip Archive with the files you have mentioned. I also notice that normal "find" using CTRL-F can able to search while searching files separately.

Let me know if you need further information.

Have a Good Day,
Ankur.

Re: Search Problem

Posted: Mon Jun 08, 2009 3:16 pm
by bkankur
Dear Eran,

Kindly requesting you share any updates if you have regarding the search problem in case if you need further information.

Have a Good Day.

Thank you,
Ankur

Re: Search Problem

Posted: Mon Jun 08, 2009 5:01 pm
by eranif
Hi,

here is my 2 cents:
As I suspected, it is a matter of encoding. CodeLite always assumes UTF8. However your file is probably failing with this, so I defaulted it to Latin1 and it worked:

- I changed the IDE's deafult character set to be latin-1 (from 'settings -> editor -> misc -> file font config' and select 'ISO-8859-1')
- Open the 'find in files' dialog and check the option 'use the editor's font encoding'
- Try the search again, this time you will get all 4 results.

OR

Another way is fixing the file to UFT8, to do this:
- Open the file that codelite fails to find a match in it, modified it (enter a space or something) and save it again - this time it will be saved as UTF8 properly.

Eran