News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

html build log, wrong encoding ??

Started by killerbot, December 25, 2008, 06:02:27 PM

Previous topic - Next topic

killerbot

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 ?

killerbot

my solution would be :
in compilergcc.cpp : LogMessage


        // 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.