Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

5406 : refuses to startup on linux

<< < (2/3) > >>

mmkider:

--- Quote from: jens on January 16, 2009, 06:07:28 pm ---C::B core (built with C::B) works without problems.
I try it with plugins now, and if it still works, I try automake.

@mmkider
no such error here, if I change it manually I get a compile error, not a segfault at runtime:

--- Code: ---g++ -Wall -g -I/usr/lib/wx/include/gtk2-unicode-release-2.8 -I/usr/include/wx-2.8 -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D__WXGTK__ -pthread  -fmessage-length=0 -fexceptions -Winvalid-pch -Ulinux -Uunix -fPIC -DcbDEBUG -DCB_PRECOMP     -Iinclude -Iplugins/compilergcc/depslib/src -Iinclude/scripting/include -Iinclude/scripting/sqplus -Iinclude/wxscintilla/include  -c /home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp -o .objs/plugins/compilergcc/compilergcc.o
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3371:28: warning: trigraph ??) ignored, use -trigraphs to enable
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3371: error: stray ‘\’ in program
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3372:28: warning: trigraph ??) ignored, use -trigraphs to enable
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3372: error: stray ‘\’ in program
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp: In member function ‘void CompilerGCC::LogMessage(const wxString&, CompilerLineType, LogTarget, bool, bool, bool)’:
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3371: error: no matching function for call to ‘wxString::Replace(const wchar_t [9], bool)’
/usr/include/wx-2.8/wx/string.h:1175: note: candidates are: size_t wxString::Replace(const wxChar*, const wxChar*, bool)
/home/jens/codeblocks-build/codeblocks.trunk/src/plugins/compilergcc/compilergcc.cpp:3372: error: no matching function for call to ‘wxString::Replace(const wchar_t [9], bool)’
/usr/include/wx-2.8/wx/string.h:1175: note: candidates are: size_t wxString::Replace(const wxChar*, const wxChar*, bool)

--- End code ---

--- End quote ---
I build a patch.
If you have a litte time, you can try it.


[attachment deleted by admin]

mmkider:

--- Quote from: MortenMacFly on January 16, 2009, 06:09:20 pm ---
--- Quote from: mmkider on January 16, 2009, 05:47:24 pm ---
--- Code: ---        Quoted.Replace(_T("??), _T("\""), true);
        Quoted.Replace(_T("??), _T("\""), true);

--- End code ---
to

--- Code: ---        Quoted.Replace(_T("??"), _T("\""), true);
        Quoted.Replace(_T("??"), _T("\""), true);

--- End code ---

--- End quote ---
This I didn't touch at all...?! And in addition: it looks fine for me in SVN an on my local copy...?!

--- End quote ---

I don't know what happen.
But I update source into rev 5403, then I found this issue.
 8)

Jenna:

--- Quote from: mmkider on January 16, 2009, 06:11:45 pm ---I build a patch.
If you have a litte time, you can try it.


--- End quote ---

Here is your patch as it looked like if I open it in "vi":

--- Code: ---Index: compilergcc.cpp
===================================================================
--- compilergcc.cpp     (revision 5406)
+++ compilergcc.cpp     (working copy)
@@ -3368,8 +3368,9 @@
         }
         // replace the ´ family by "
         wxString Quoted = message;
-        Quoted.Replace(_T("‘"), _T("\""), true);
-        Quoted.Replace(_T("’"), _T("\""), true);
+        Quoted.Replace(_T("??"), _T("\""), true);
+        Quoted.Replace(_T("??"), _T("\""), true);
+
         m_BuildLogContents << Quoted;

         if (isTitle)
--- End code ---

What encoding has the file ("compilergcc.cpp"), if you open it with C::B, for me it's UTF-8.

mmkider:

--- Quote from: jens on January 16, 2009, 06:21:07 pm ---
--- Quote from: mmkider on January 16, 2009, 06:11:45 pm ---I build a patch.
If you have a litte time, you can try it.


--- End quote ---

Here is your patch as it looked like if I open it in "vi":

--- Code: ---Index: compilergcc.cpp
===================================================================
--- compilergcc.cpp     (revision 5406)
+++ compilergcc.cpp     (working copy)
@@ -3368,8 +3368,9 @@
         }
         // replace the ´ family by "
         wxString Quoted = message;
-        Quoted.Replace(_T("‘"), _T("\""), true);
-        Quoted.Replace(_T("’"), _T("\""), true);
+        Quoted.Replace(_T("??"), _T("\""), true);
+        Quoted.Replace(_T("??"), _T("\""), true);
+
         m_BuildLogContents << Quoted;

         if (isTitle)
--- End code ---

What encoding hass the file ("compilergcc.cpp"), if you open it with C::B, for me it's UTF-8.

--- End quote ---
For me it's windows-950.
Sorry,this is my mistake.

killerbot:
the Quoted stuff  is still ok in my svn?
Going back to 5402 and building to see if then things are still ok, ... more to come

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version