Bug #13423 2008-03-22 19:03
rickg22
Search in files not working for ISO-8859-1 in Linux
In linux, files with accents in iso-8859-1 encoded files aren't searched by the find-in-files function.
Steps to reproduce:
1. Grab a file and save it with iso-8859-1 encoding. If it's an html file, even better. Add the file to the project and save the project (be sure to add a few accented characters here and there).
2. Save and close the file.
3. find-in-files and search for a string that you know for sure is in the iso-8859-1 file.
Result: The file in question won't appear in the search results.
Expected result: The file should appear and the relevant lines shown.
Additional info: It seems that it's a bug in scintilla 1.62 or previous. Upgrading to scintilla 1.63 should fix the bug. Otherwise, a character conversion should have to be done before performing the search.
- Category
- Application::WrongBehaviour
- Group
- Status
- Closed
- Close date
- 2008-03-23 08:57
- Assigned to
- biplab
History
I just found out, it's a character encoding issue. wxScintilla opens the file and converts it using *wxConvCurrent, but the string to be searched is not converted - hence, the find-in files doesn't work depending on the encoding. If the files are loaded in ISO-8859-1, search and replace works fine - but how to handle other kinds of files?
Thanks Rick for your patch. :-)