Rename Local Variable problem

Discussion about CodeLite development process and patches
NilC
CodeLite Enthusiast
Posts: 34
Joined: Fri Sep 14, 2012 1:01 pm
Genuine User: Yes
IDE Question: C++
Contact:

Rename Local Variable problem

Post by NilC »

Rename Local Variable not working ("No matches were found" message) at files with multibytes symbols in comments, like this:

Code: Select all

int main(int argc, char **argv)
{
	//Я
	int x = 0;
	return 0;
}
I think problem in wxString::mb_str(wxConvUTF8), cause char 'Я' is 2 bytes length char in UTF8, but mb_str(wxConvUTF8) returns this char like 4 bytes length char.
So in file cppwordscanner, line 243 we got wrong convertion, sooo method IsOK returns wxNOT_FOUND;

As fast solution I made hack in my local build:

Code: Select all

bitmap->text = m_text.mb_str(wxConvISO8859_1).data();