User forums > Help

Can't find in files in Linux with nonstandard file extensions... bug perhaps?

<< < (2/2)

rickg22:
Confirmed, then. It is a bug. :) Now where was my berlios pw?  :P

Edit: Submitted the bug as http://developer.berlios.de/bugs/?func=detailbug&bug_id=13423&group_id=5358

Please fix soon! :( find-in-files is a feature i depend on! Thanks :)

rickg22:
Update: After a while of testing and updating, I managed to recompile C::B with the latest version of scintilla - 1.76.

The results are: Failure. The bug's still present. So it's not a Scintilla bug, but rather a mere character encoding issue.

rickg22:
The trick was replacing control->LoadFile with the new EncodingDetector class.

Here's the relevant code in editormanager.cpp: (from line 2199 approx.)

--- Code: ---        // check if the file is already opened in built-in editor and do search in it
        cbEditor* ed = IsBuiltinOpen(filesList[i]);
        if (ed)
            control->SetText(ed->GetControl()->GetText());
        else {
            EncodingDetector detector(filesList[i]);
            if(!detector.IsOK()) {
                continue;
            }
            control->SetText(detector.GetWxStr());
        }

--- End code ---

Note that editormanager.cpp needs the following line around the beginning:

--- Code: ---#include "encodingdetector.h"

--- End code ---

With this little modification, everything works!!! :D

Biplab:

--- Quote from: rickg22 on March 23, 2008, 08:12:43 am ---The trick was replacing control->LoadFile with the new EncodingDetector class.

....

With this little modification, everything works!!! :D

--- End quote ---

Rick, I've applied the patch in SVN. :)

rickg22:
Yay! :D

Navigation

[0] Message Index

[*] Previous page

Go to full version