Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: killerbot on December 25, 2008, 06:02:27 pm

Title: html build log, wrong encoding ??
Post by: killerbot on December 25, 2008, 06:02:27 pm
Anyone who can confirm the following issue, or who has ideas how to fix ?

Environment : revision of today, linux 32 bit.

In the log window of CB :

Quote
/home/lieven/Projects/view_vipnt_buildserver/vipnt/AngleSvd/src/AngleSvd.cpp: In member function ‘virtual vipnt::TRAF_ERROR vipnt::CAngleSvdAlgo::Run()’:
/home/lieven/Projects/view_vipnt_buildserver/vipnt/AngleSvd/src/AngleSvd.cpp:464: warning: switch missing default case

in in the html log :
Quote
/home/lieven/Projects/view_vipnt_buildserver/vipnt/AngleSvd/src/AngleSvd.cpp: In member function ‘virtual vipnt::TRAF_ERROR vipnt::CAngleSvdAlgo::Run()’:
/home/lieven/Projects/view_vipnt_buildserver/vipnt/AngleSvd/src/AngleSvd.cpp:464: warning: switch missing default case

Seems we have issues with the ´  ...

In the html itself (so not shown by browser : firefox), we see :
Quote
/home/lieven/Projects/view_vipnt_buildserver/vipnt/AngleSvd/src/AngleSvd.cpp: In member function ‘virtual vipnt::TRAF_ERROR vipnt::CAngleSvdAlgo::Run()’:<br />


Possible solution : before sending the text to the html file, look for the ´ and especially encode it, or replace all it by "
 or '

What do you think ?
Title: Re: html build log, wrong encoding ??
Post by: killerbot on December 26, 2008, 12:02:46 am
my solution would be :
in compilergcc.cpp : LogMessage

Code
        // replace the ´ family by "
wxString Quoted = message;
Quoted.Replace(_("‘"), _("\""), true);
Quoted.Replace(_("’"), _("\""), true);
        m_BuildLogContents << Quoted;

In case there are no objections I would commit this tomorrow.